
Status and Events
/* Wait until the measurements are complete before
reading them*/
*OPC
The program can now do different tasks such as talk to other devices. The SRQ,
when it comes, interrupts those tasks and returns control to this task.
/** Read results **/
FETCH:ARRAY? 1000
Using the *OPC? Query
The *OPC? query places a 1 in the Output Queue once an operation that generates
an OPC message is complete. The *OPC? query does not return until all pending
OPC operations have completed. Therefore, your time-out must be set to a time at
least as long as the longest expected time for the operations to complete.
The same command sequence using the *OPC? query for synchronization looks
like this:
/** Set up for period measurement **/
FUNCTION “PERIOD 1”
INPUT:LEVEL 0; :AUTO OFF; :COUPLING DC
TRIGGER:COUNT 1000; :ARM COUNT 1
DISPLAY:ENABLE ON
FORMAT ASCII; :TINFORMATION OFF
/** Start measurement**/
INITIATE
/* Wait until the measurements are complete before
reading them*/
*OPC?
Wait for read from Output Queue.
/** Read results **/
FETCH:ARRAY? 1000
This is the simplest approach. It requires no status handling or loops. However,
you must set the controller time-out for longer than the acquisition operation.
Messages
The information contained in the topic tabs above covers all the programming
interface messages the instrument generates in response to commands and queries.
For most messages, a secondary message from the instrument returns detail about
the cause of the error or the meaning of the message. This message is part of the
message string and is separated from the main message by a semicolon.
Each message is the result of an event. Each type of event sets a speci
fi
c bit in the
SESR and is controlled by the equivalent bit in the DESER. Thus, each message
is associated with a speci
fi
c SESR bit. In the message tables, the associated SESR
bit is speci
fi
ed in the table title, with exceptions noted with the error message text.
FCA3000, FCA3100, MCA3000 Series Programmer Manual
3-9
Содержание FCA3000 Series
Страница 2: ......
Страница 8: ...Preface iv FCA3000 FCA3100 MCA3000 Series Programmer Manual ...
Страница 9: ...Getting Started ...
Страница 10: ......
Страница 14: ...Using the USB Interface 1 4 FCA3000 FCA3100 MCA3000 Series Programmer Manual ...
Страница 15: ...Syntax and Commands ...
Страница 16: ......
Страница 26: ...Command Syntax 2 10 FCA3000 FCA3100 MCA3000 Series Programmer Manual ...
Страница 135: ...Status and Events ...
Страница 136: ......
Страница 156: ...Status and Events 3 20 FCA3000 FCA3100 MCA3000 Series Programmer Manual ...
Страница 157: ...Programming Examples ...
Страница 158: ......
Страница 179: ...Appendices ...
Страница 180: ......
Страница 181: ...Appendix A Character Set FCA3000 FCA3100 MCA3000 Series Programmer Manual A 1 ...
Страница 182: ...Appendix A Character Set A 2 FCA3000 FCA3100 MCA3000 Series Programmer Manual ...
Страница 188: ...Appendix D Reserved Words D 2 FCA3000 FCA3100 MCA3000 Series Programmer Manual ...