MDO3000 Programmer Manual.pdf - 第1024页
Status and Events Ta b l e 3 - 4 : N o E v ent Messages Code Message 0 No events to re port; queue empty 1 No events to r eport; new events pending *ESR? Command Error The following table shows the command error messages…

Status and Events
Example of Using the
BUSY Query
The BUSY? query
allows you to find out whether the oscilloscope is
busy processing a command that has an extended processing time such as
single-sequence acquisition.
The same command sequence, using the BUSY? query for synchronization, looks
like this:
/* Set up conditional acquisition */
ACQUIRE:STATE OFF
SELECT:CH1 ON
HORIZONTAL:RECORDLENGTH 1000
ACQUIRE:MODE SAMPLE
ACQUIRE:
STOPAFTER SEQUENCE
/* Acqu ire waveform data */
ACQUIRE:STATE ON
/* Set up the measurement parameters */
MEASUREMENT:IMMED:TYPE AMPLITUDE
MEASUREMENT:IMMED:SOURCE CH1
/* Wait
until t he acquisitio n is com plete before taking
the mea surement */
While B USY? keep looping
/* Take amplitude measurement */
MEASUREMENT:IMMED:VALUE?
This sequence lets you create your own wait loop rather than using the *WAI
command. The BUSY? query helps you avoid time-outs caused by writing too
many commands to the input buffer. The controller is still tied up though, and
the
repeated BUSY? query will result in bus traffic.
Messages
The information contained in the topics above covers all the programming
interface messages the oscilloscope generates in response to commands and
q
ueries.
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 specific bit inthe
SESR and is controlled by the equivalent bit in the DESER. Thus, each message
is associated with a specific SESR bit. In the message tables, the associated SESR
bit is specified 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.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 3-13

Status and Events
Table 3-4: No Ev
ent Messages
Code Message
0 No events to re
port; queue empty
1
No events to r
eport; 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.
Table 3-5: Command Error Messages (CME Bit 5)
Code Message
100
Command error
101 Invalid character
102
Syntax error
103 Invalid separator
104 Data type error
105
GET not allowed
108 Parameter not allowed
109 Missing parameter
110
Command header error
112 Program mnemonic too long
113
Undefined header
120 Numeric data error
121 Invalid character in numeric
123 Exponent too large
124 Too many digits
130
Suffixerror
131
Invalid suffix
134
Suffix too long
140
Character data error
141 Invalid character data
144
Character data too long
150
String data error
151 Invalid string data
152
String data too long
160 Block data error
161 Invalid block data
170
Command expression error
171 Invalid expression
3-14 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Status and Events
Execution Error
The following t
able lists the execution errors that are detected during execution of
a command.
Table 3-6: Execution Error Messages (EXE Bit 4)
Code Message
200 Execution error
221
Settings conflict
222
Data out of range
224 Illegal pa
rameter value
241 Hardware missing
250 Mass storage error
251 Missing m
ass storage
252 Missing media
253
Corrupt media
254
Media full
255
Directory full
256
File name not found
257 File name error
258 Medi
aprotected
259 File name too long
270 Hardcopy error
271 Har
dcopy device not responding
272 Hardcopy is busy
273 Hardcopy aborted
27
4
Hardcopy configuration error
28
0
Pr
ogram error
282
I
nsufficient network printer information
283 Network printer not responding
284 Network printer server not responding
286 Program runtime error
287
Print server not found
2200 Measurement error, Measurement system error
2201 Measurement error, Zero period
2202
Measurement error, No period, second waveform
2203
Measurement error, No period, second waveform
2204
Measurement error, Low amplitude, second waveform
2205
Measurement error, Low amplitude, second waveform
2206 Measurement error, Invalid gate
2207
Measurement error, Measurement overflow
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 3-15