User and Programming Manual
XDS Series
83
10.3 Using Queries
Observe the following precautions with queries:
•
Set up the proper number of variables for the returned data.
•
Read back all the results of a query before sending another command to the power supply .
Otherwise a Query Error will occur and the non-returned data will be lost.
10.4 Structure of a SCPI Message
SCPI messages consist of one or more message units ending in a message terminator. The
terminator is not part of the syntax, but implicit in the way your programming language indicates the
end of a line (such as a newline or end-of-line character).
The Message Unit
The simplest SCPI command is a single message unit consisting of a command header (or keyword)
followed by a message terminator.
CURRent?<newline>
VOLTage?<newline>
The message unit may include a parameter after the header. The parameter usually is numeric:
VOLTage
20<newline>
OUTPut
1<newline>
Combining Message Units
The following command message is briefly described here, with details in subsequent paragraphs.
Data
Query Indicator
Message Unit
Header
SOUR:VOLT 80; CURR 60; :CURR? <NL>
Header
Message
Root
Message
Separator Unit Specifier Terminator
Separator
Figure 10-2: Command Message Structure
The basic parts of the above message are:
Message Component
Example
Headers SOURC
VOLT
CURR
CURR
Header Separator
The colon in SOUR:VOLT
Data 80
60
Data Separator
The space in VOLT 80 and CURR 60
Message Units
VOLT 80
CURR 60
CURR?
Message Unit Separator
The semicolons in VOLT 80; and CURR 60;
Root Specifier
The colon in :CURR?
Содержание XDS 100-100
Страница 4: ...User and Programming Manual 4 XDS Series Electrical Safety Symbols Used in This Manual ...
Страница 27: ...User and Programming Manual XDS Series 27 Figure 3 5 Outline Drawing XDS DC Supply ...
Страница 41: ...User and Programming Manual XDS Series 41 Figure 5 4 Parallel Cable Interconnect Accessory ...
Страница 45: ...User and Programming Manual XDS Series 45 Figure 6 1 DC Power Supply Block Diagram IF option shown ...
Страница 69: ...User and Programming Manual XDS Series 69 Figure 8 3 Replaceable Fuse Locations ...