Using The Operation Complete Commands - Agilent Technologies U2000 Series Manual

Usb power sensors
Hide thumbs Also See for U2000 Series:
Table of Contents

Advertisement

Using the Operation Complete Commands

The *OPC? and *OPC commands allow you to maintain synchronization
between the computer and the power sensor. The *OPC? query command
places an ASCII character 1 into the power sensor's output queue when all
pending power sensor commands are complete. If your program reads this
response before continuing program execution, you can ensure
synchronization between one or more instruments and the computer.
The *OPC command sets bit 0 (Operation Complete) in the Standard Event
Status Register when all pending power sensor operations are complete.
Procedure
• Send a device clear message to clear the power sensor's output buffer.
• Clear the event registers with the *CLS (clear status) command.
• Enable operation complete using the *ESE 1 command (standard event
• Send the *OPC? (operation complete query) command and enter the result
• Send your programming command string, and place the *OPC (operation
• Send the *STB? (status byte query) command to poll the register. This
Examples
This example program uses the *OPC? command to determine when the power
sensor has finished calibrating.
CAL:AUTO ONCE
*OPC?
MEAS:POW:AC?
U2000 Series Programming Guide
register).
to assure synchronization.
complete) command as the last command.
command does not clear the status byte summary register.
Power Sensor Remote Operation
1
49

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents