USING THE OPERATION COMPLETE STATUS
There are several ways to determine if the meter has executed a command. If the command string contains a query command, the program
can simply wait for the meter to transmit its response. But, if the query command contains an error, the command may never be executed.
Further, some commands do not require a response. The best way to handle all situations is to issue the *OPC? command once prior to
sending any other commands. This will cause the meter to always transmit an ASCII “1” each time it executes a command string. If the
command string contains one or more query commands, the “1” will be appended to the end of the response separated by a semicolon (
;
). For
instance, the response to the command string
*OPC?
;
:UNIT:FLUX:AC:GAUSS
would be “1”, whereas the response to a command string containing a query
*
OPC?
;
:MEAS:FLUX?
might be “+221.3G
;
1
4-22