3-13
Programming
Making Measurements
The benefit of non- sequential commands is that, in some situations,
they can reduce the overall execution times of programs. For example,
you can set the peak excursion, peak threshold, and elevation and use
a *WAI command at the end to save time. However, non- sequential
commands can also be a source of annoying errors. Always use the
*OPC query or *WAI command with the non- sequential commands to
ensure that your programs execute properly.
For examp le, sup p ose that you wanted to set the elevation correction
value and then send an :INIT:IMM command. The following p rogram-
ming fragment results in an error
“–213 Init ignored”
. This occurs
because the :ELEVation
command causes the recalculation of the data
which is like sending the :INIT:IMM command. When the actual
:INIT:IMM is sent, the error occurs because the command is already in
progress.
OUTPUT 720;”:INIT:IMM”
OUTPUT 720;”:SENSe:CORRection:ELEVation 1000”
OUTPUT 720;”:INIT:IMM”
Use an *OPC? query to ensure that the :ELEVation
command has com-
pleted as shown in the following lines:
OUTPUT 720;”:INIT:IMM”
OUTPUT 720;”:SENSe:CORRection:ELEVation 1000”
OUTPUT 720;”*OPC?”
ENTER 720;Response$
OUTPUT 720;”:INIT:IMM”
Or, the *WAI command could be used:
OUTPUT 720;”:INIT:IMM”
OUTPUT 720;”:SENSe:CORRection:ELEVation 1000”
OUTPUT 720;”*WAI?”
OUTPUT 720;”:INIT:IMM”
Summary of Contents for 86120C
Page 12: ......
Page 26: ...1 14 Getting Started Returning the Instrument for Service ...
Page 27: ...1 15 Getting Started Returning the Instrument for Service ...
Page 28: ......
Page 96: ...3 18 Programming Monitoring the Instrument ...
Page 128: ...3 50 Programming Lists of Commands ...
Page 236: ...4 108 Programming Commands UNIT Subsystem ...
Page 248: ......
Page 264: ...6 16 Specifications and Regulatory Information Product Overview ...
Page 269: ...7 5 Reference Menu Maps Appl s Menu ...
Page 271: ...7 7 Reference Menu Maps Display List by WL Menu Delta On Menu ...
Page 273: ...7 9 Reference Menu Maps System Print Menu ...
Page 274: ...7 10 Reference Menu Maps System Setup Menu ...
Page 284: ......
Page 292: ......
Page 293: ......