2.7 Controlling Message Sync
2-15
2
Before use
Using
*WAI
The
*WAI
common command instructs processing to wait until processing
of the message sent before the
*WAI
command is completed before
executing the next command.
Example of Use:
INIT ; *WAI ; SOUR:WAV 1550; INIT
Time
Message received
INIT Measurement
SOUR:WAV 1550
Wa vef orm
change
INIT
Measurement start
after conditions
change
Wavelength change after measurement completed
Execution of next
message stopped by
*WAI
Figure 2.7-2 Sync Control using
*WAI
Using
*OPC?
The
*OPC?
common command queries the OPC bit indicating the end
of message processing.
Examples of Use:
INIT
Executes averaging measurement
*OPC?
Queries if operation is completed and
waits until “1” returns.
> 1
Measuring stopped when response is 1.
SENS:TRAC:READY?
Queries presence/absence of measured
waveform data
> 1
Waveform data is ready when response
is 1.
TRAC:LOAD:SOR?
Gets trace object from OTDR
SOUR:WAV 1550
Changes wavelength
INIT
Starts measurement with new
measurement conditions