2
Remote Control
2.1 Remote control basis
15
If the processing time of the overlapped command is short, the command *WAI or *OPC can be used
after use of the overlapped command to achieve command synchronization. In order to synchronously
execute other tasks when the computer or instrument is waiting for the completion of execution of
overlapped commands, the following synchronization technologies can be adopted:
OPC and service request
1) Set the ESE OPC mask bit (bit0): *ESE 1;
2) Set the SRE bit5: *SRE 32 and enable ESB service request;
3) Send the overlapped command and *OPC;
4) Wait for the service request signal.
SRQ represents the completion of execution of the overlapped command
OPC? and service request
1) Set the SRE bit4:*SRE 16 and enable M service request;
2) Send overlapped commands and *OPC? ;
3) Wait for the service request signal.
SRQ represents the completion of execution of the overlapped command
Event Status Register (ESE)
1) Set the ESE OPC mask bit (bit0): *ESE 1;
2) Send the overlapped command only and do not send *OPC, *OPC or *WAI;
3)
Send “*OPC;*ESR?” in the timer for cyclic query of completion status of operation.
If the return value (LSB) is equal to 1, this indicates that the overlap command has been executed.
*OPC? and short timeout
1) Send the overlapped command only and do not send *OPC, *OPC or *WAI
2)
Send “<short timeout>; *OPC?” in the timer for cyclic query of completion status of operation;
3) If the return value (LSB) is equal to 1, this indicates that the overlap command has been executed.
The timeout means it is under operation;
4) Reset the timeout value to the old value;
5)
Send the command “SYStem:ERRor?” to clear the error queue and delete the “-410, Query
Interrupted” message.
If the return value (LSB) is equal to 1, this indicates that the overlap command has been executed.
2.1.5
Status reporting system
The status report system stores all operating status information of the current instrument, including error
information. Such information is storedin the status register and error queue respectively and can be
queried through the remote interface.
Structure of status register
…………………………………………………… ………………………16
Structure of SCPI status register
…………………………………………… …………………………17
Description of status register ..................................................................