DME1600
37
SCPI Status System
Messa
ge Ref
e
re
nce
2
Determining when a command sequence has been completed
1
Clear the DME1600’s output buffer by sending a device clear message.
2
Use the *CLS command to clear the event register.
3
Enable the “Operation Complete” bit by using the *ESE 1 command.
4
Send the *OPC? command, and enter the result to enable synchroniza-
tion.
5
When bit 5 is set in the status byte summary register, use a serial poll to
check.
You can set the DME1600 for an SRQ interrupt by using the *SRE 32 command.
Using the message available bit (MAV)
You can use the status bytes “Message Available” bit (bit 4) to determine when data can be
retrieved by the bus controller. The DME1600 automatically enables bit 4 when the first trig-
ger caused by the TRIGger:SOURce:IMMediate command occurs. The DME1600 clears bit 4
after all the messages have been retrieved from the output buffer.
The MAV bit only indicates when the first retrieval caused by the READ? command occurred.
The MAV bit is useful for users who do not know when a trigger event such as a BUS or
EXTernal event occurred. After the INITiate and FETCH? commands are executed and all
specified measurements are completed, the MAV bit is set to 1.
The INITiate command stores the measured values in the DME1600’s internal memory. The
FETCh? command transfers the measured values to the DME1600’s output buffer.
Using *OPC to send a signal when there is data in the output buf-
fer
Normally, you can use the “Operation Complete” bit (bit 0) in the standard event register to
generate a signal indicating that the command sequence has completed. After you execute
the *OPC command, this bit is set to 1.
If you send the *OPC command after a command to load a messages from the DME1600’s
output buffer, you can use the “Operation Complete” bit to determine when the message is
available. However, if too many messages are generated before the *OPC command is exe-
cuted, the output buffer will become full, and the DME1600 will stop acquiring measured val-
ues.
Summary of Contents for DME1600
Page 4: ...4 DME1600 This page left blank intentionally...
Page 5: ...Setup This chapter explains the settings that you need to configure to use the interfaces 1...
Page 9: ...Message Reference This chapter explains the SCPI com mands 2 Message Reference...
Page 43: ...Appendix A Error Messages B Sample Programs...
Page 55: ......