Command Syntax
WCA230A & WCA280A Programmer Manual
2- 7
You can chain several commands or queries together into a single message. To
create a chained message, first create a command or query, add a semicolon (;),
and then add more commands or queries and semicolons until the message is
complete. If the command following a semicolon is a root node, precede it with a
colon (:). Figure 2--3 illustrates a chained message consisting of several
commands and queries. The single chained message should end in a command or
query, not a semicolon. Responses to any queries in your message are separated
by semicolons.
:CALC:MARK:X 100;:SENS:AVER:STAT ON;:DISP:WAV:Y:PDIV?;:READ:SPEC:CFR?
First command
Second command
Second query
The response from this chained message
might be
Response from first query
Response from second query
100;1.2E+9
First query
Figure 2- 3: Example of chaining commands and queries
If a command or query has the same root and lower-level nodes as the previous
command or query, you can omit these nodes. In Figure 2--4, the second
command has the same root node (TRIG:SEQuence) as the first command, so
these nodes can be omitted.
First command
Additional commands
(omitted the root nodes)
Identical root and lower-level nodes
:TRIG:SEQ:MODE NORM;:TRIG:SEQ:SLOP NEG;:TRIG:SEQ:POS 50
:TRIG:SEQ:MODE NORM;:SLOP NEG;POS 50
Figure 2- 4: Example of omitting root and lower-level nodes in a chained message
Chaining Commands and
Queries
Summary of Contents for WCA230A
Page 13: ...Getting Started...
Page 14: ......
Page 24: ...Getting Started 1 10 WCA230A WCA280A Programmer Manual...
Page 25: ...Syntax and Commands...
Page 26: ......
Page 92: ...CALCulate Commands 2 66 WCA230A WCA280A Programmer Manual...
Page 100: ...CALibration Commands 2 74 WCA230A WCA280A Programmer Manual...
Page 114: ...CONFigure Commands 2 88 WCA230A WCA280A Programmer Manual...
Page 270: ...DISPlay Commands 2 244 WCA230A WCA280A Programmer Manual...
Page 320: ...FETCh Commands 2 294 WCA230A WCA280A Programmer Manual...
Page 326: ...HCOPy Commands 2 300 WCA230A WCA280A Programmer Manual...
Page 330: ...INITiate Commands 2 304 WCA230A WCA280A Programmer Manual...
Page 350: ...MMEMory Commands 2 324 WCA230A WCA280A Programmer Manual...
Page 356: ...PROGram Commands 2 330 WCA230A WCA280A Programmer Manual...
Page 396: ...READ Commands 2 370 WCA230A WCA280A Programmer Manual...
Page 554: ...SENSe Commands 2 528 WCA230A WCA280A Programmer Manual...
Page 562: ...STATus Commands 2 536 WCA230A WCA280A Programmer Manual...
Page 572: ...SYSTem Commands 2 546 WCA230A WCA280A Programmer Manual...
Page 578: ...TRACe Commands 2 552 WCA230A WCA280A Programmer Manual...
Page 594: ...TRIGger Commands 2 568 WCA230A WCA280A Programmer Manual...
Page 598: ...Retrieving Response Message 2 572 WCA230A WCA280A Programmer Manual...
Page 599: ...Status and Events...
Page 600: ......
Page 616: ...Status and Events 3 16 WCA230A WCA280A Programmer Manual...
Page 623: ...Programming Examples...
Page 624: ......
Page 641: ...Appendices...
Page 642: ......
Page 660: ...Appendix C Factory Initialization Settings C 12 WCA230A WCA280A Programmer Manual...
Page 668: ...Appendix E SCPI Conformance Information E 4 WCA230A WCA280A Programmer Manual...
Page 669: ...Glossary and Index...
Page 670: ......
Page 672: ...Glossary Glossary 2 WCA230A WCA280A Programmer Manual...
Page 676: ...Index Index 4 WCA230A WCA280A Programmer Manual...
Page 677: ......
Page 678: ......