Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
Programming Guide
3-47
:CALC3:AVERAGE ON
:CALC3:AVERAGE:COUNT 50
:TRIG:COUNT:AUTO ON
:INIT
*WAI
:CALC3:AVERAGE:ALL?
Enable statistics.
Base statistics on 50 measurements.
On INIT, take 50 measurements.
Start 50 measurements.
Wait until 50 measurements are complete
before Counter executes another
command. At this point, commands could
be issued to other instruments.
Asks for the statistics. This command, will
not be executed until the 50th
measurement is complete.
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 because of the preceding
*WAI command. If this line had been a command to address another instrument, it
would be immediately executed. If you had wanted to hold off the command to
another instrument, you would use the *OPC? command instead of the *WAI
command.
:CALC3:AVERAGE ON
:CALC3:AVERAGE:COUNT 50
:TRIG:COUNT:AUTO ON
:INIT
*OPC?
Enable statistics.
Base statistics on 50 measurements.
On INIT, take 50 measurements.
Start making measurements.
Tell Counter to put a 1 in the output buffer
when 50th measurement is complete.
Read the Counter. The program will wait here until the Counter returns a 1.
:CALC3:AVERAGE:ALL?
Ask for statistics.
Using the *OPC Command to Assert SRQ
This method is recommended when the Counter is on the HP-IB with many other
instruments, any of which can assert SRQ. The commands *OPC, *ESE 1 and
Summary of Contents for 53131A
Page 1: ...Programming Guide HP 53131A 132A 225 MHz Universal Counter ...
Page 2: ......
Page 13: ...1 1 Before You Start ...
Page 24: ...Chapter 1 Before You Start Related Documentation 1 12 Programming Guide ...
Page 25: ...2 2 Command Summary A Quick Reference ...
Page 68: ...Chapter 2 Command Summary RST Response 2 44 Programming Guide ...
Page 69: ...3 3 Programming Your Universal Counter for Remote Operation ...
Page 167: ...4 4 Command Reference A Dictionary ...
Page 310: ...Chapter 4 Command Reference WAI Wait to Continue Command 4 144 Programming Guide ...
Page 311: ...5 5 Errors ...
Page 329: ......
Page 330: ...H Manual Part Number 53131 90044 Printed in U S A NOVEMBER 1996 ...