![background image](http://html.mh-extra.com/html/tektronix/mso54/mso54_programmers-manual_1078778020.webp)
Command Syntax
Abbreviating
You can abbreviate many oscilloscope commands. Each command in this
documentation shows the minimum acceptable abbreviations in capitals. For
example, you can enter the command
ACQuire:NUMAvg
simply as ACQ:NUMA
or acq:numa.
Abbreviation rules may change over time as new oscilloscope models are
introduced. Thus, for the most robust code, use the full spelling.
If you use the
HEADer
command to have command headers included as part
of query responses, you can further control whether the returned headers are
abbreviated or are full-length with the
VERBose
command.
Concatenating
You can concatenate any combination of set commands and queries using a
semicolon (;). The oscilloscope executes concatenated commands in the order
received.
When concatenating commands and queries, you must follow these rules:
1.
Separate completely different headers by a semicolon and by the beginning
colon on all commands except the
fi
rst one. For example, the commands
TRIGger:MODe NORMal
and
ACQuire:NUMAVg 8
, can be concatenated
into the following single command:
TRIGger:MODe NORMal;:ACQuire:NUMAVg 8
2.
If concatenated commands have headers that differ by only the last mnemonic,
you can abbreviate the second command and eliminate the beginning colon.
For example, you can concatenate the commands
ACQuire:MODe ENVelope
and
ACQuire:NUMAVg 8
into a single command:
ACQuire:MODe ENVelope; NUMAVg 8
The longer version works equally well:
ACQuire:MODe ENVelope;:ACQuire:NUMAVg 8
3.
Never precede a star (*) command with a colon:
ACQuire:STATE 1;*OPC
Any commands that follow will be processed as if the star command was
not there so the commands,
ACQuire:MODe ENVelope;*OPC;NUMAVg 8
will set the acquisition mode to envelope and set the number of acquisitions
for averaging to 8.
4.
When you concatenate queries, the responses to all the queries are
concatenated into a single response message. For example, if the display
graticule is set to Full and the display style is set to dotsonly, the concatenated
query
DISplay:GRAticule?;STYle?
will return the following.
If the header is on:
DISPLAY:GRATICULE FULL;:DISPLAY:STYLE DOTSONLY
2-4
MSO54, MSO56, MSO58, MSO58LP Programmer
Summary of Contents for MSO54
Page 1: ...xx 5 Series MSO MSO54 MSO56 MSO58 MSO58LP ZZZ Programmer Manual P077130502 077 1305 02 ...
Page 2: ......
Page 3: ...5 Series MSO MSO54 MSO56 MSO58 MSO58LP ZZZ Programmer Manual xx www tek com 077 1305 02 ...
Page 8: ...Preface iv MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 26: ...Command Syntax 2 10 MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 936: ...Status and Events 3 20 MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 937: ...Appendix A Character Set MSO54 MSO56 MSO58 MSO58LP Programmer A 1 ...
Page 938: ...Appendix A Character Set A 2 MSO54 MSO56 MSO58 MSO58LP Programmer ...