User and Programming Manual - Rev N
9.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 AC source.
Otherwise a Query Error will occur and the non-returned data will be lost.
9.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.
FREQuency?<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; FREQ 60; :CURR? <NL>
Header
Message
Root
Message
Separator Unit Specifier Terminator
Separator
Figure 9-2: Command Message Structure
The basic parts of the above message are:
2001RP April
2007
77
Summary of Contents for 2001RP
Page 33: ...User and Programming Manual Rev N Figure 3 7 Test Setup 2001RP 24 April 2007 2001RP...
Page 47: ......
Page 60: ...User and Programming Manual Rev N Figure 6 3 Internal Adjustments 2001RP April 2007 51...
Page 65: ...User and Programming Manual Rev N Figure 7 1 Assembly Location 56 April 2007 2001RP...
Page 68: ...User and Programming Manual Rev N Figure 7 2 Replaceable Fuse Locations 2001RP April 2007 59...
Page 70: ...User and Programming Manual Rev N Figure 8 1 Rear Panel View 2001RP April 2007 61...
Page 90: ......