Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter to Synchronize Measurements
Programming Guide
3-49
3
Using the *WAI Command
This command is most useful when only the Counter is on the bus, and
you want the Counter to send the data when it is ready. In this example,
the Counter is instructed to take 50 measurements and return the
average for these 50 measurements. The *WAI command that follows the
:INIT command instructs the Counter to hold off execution of any further
commands until the 50 measurements are complete. When the Counter
has completed the 50 measurements and averages, it executes the DATA?
command, which requests the results.
Using the *OPC? Command
This method is useful if you want to hold off execution of the program
while you wait for the Counter to complete any pending activity. In the
*WAI example above, the line following the *WAI command is accepted by
the Counter. However, the Counter does not execute the command
:AVERAGE:STATE ON
:AVERAGE:COUNT 50
:INIT
*WAI
DATA?
Enable averaging.
Base the result on 50 measurements
Start 50 measurements.
Wait until 50 measurements are complete
before parsing another command. At this
point, commands can be issued to other
instruments. The Counter stores
subsequent commands but ignores them
until the measurement is complete.
Asks for the results of the 50
measurements. This command is not
executed until all 50 measurements are
complete and the average is computed.
Summary of Contents for 53150A Series
Page 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Page 2: ......
Page 10: ...Contents x Programming Guide ...
Page 11: ...1 Before You Start ...
Page 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Page 21: ...2 Command Summary A Quick Reference ...
Page 41: ...3 Programming Your Counter for Remote Operation ...
Page 101: ...4 Command Reference A Dictionary ...
Page 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Page 163: ...5 Errors ...
Page 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Page 184: ......
Page 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...