
Status and Events
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:STOPAFTER SEQUENCE
/* Acquire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait until the acquisition is complete before taking the
measurement*/
*OPC?
Wait for read from Output Queue.
/* Take amplitude measurement */
MEASUREMENT:IMMED:VALUE?
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 oscilloscope generates in response to commands and
queries.
For most messages, a secondary message from the oscilloscope gives 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.
No Event
The following table shows the messages when the system has no events or status
to report. These have no associated SESR bit.
Table 3-4: No Event Messages
Code
Message
0
No events to report; queue empty
1
No events to report; new events pending *ESR?
Command Error
The following table shows the command error messages generated by improper
syntax. Check that the command is properly formed and that it follows the rules
in the section on command Syntax.
3-12
MSO4000 and DPO4000 Series Programmer Manual
Содержание DPO4000 Series
Страница 2: ......
Страница 10: ...Table of Contents vi MSO4000 and DPO4000 Series Programmer Manual ...
Страница 23: ...Command Syntax MSO4000 and DPO4000 Series Programmer Manual 2 9 ...
Страница 24: ...Command Syntax 2 10 MSO4000 and DPO4000 Series Programmer Manual ...
Страница 84: ...Command Groups 2 70 MSO4000 and DPO4000 Series Programmer Manual ...
Страница 546: ...Commands Listed in Alphabetical Order 2 532 MSO4000 and DPO4000 Series Programmer Manual ...
Страница 564: ...Status and Events 3 18 MSO4000 and DPO4000 Series Programmer Manual ...
Страница 565: ...Appendix A Character Set MSO4000 and DPO4000 Series Programmer Manual A 1 ...
Страница 566: ...Appendix A Character Set A 2 MSO4000 and DPO4000 Series Programmer Manual ...
Страница 572: ...Appendix B Reserved Words B 6 MSO4000 and DPO4000 Series Programmer Manual ...