140
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
8
Programming Conventions
In the command tree, use the last mnemonic in the compound header as a
reference point (for example, RANGE). Then find the last colon above that
mnemonic (TIMEBASE:). That is the point where the parser resides. You
can send any command below this point within the current program
message without sending the mnemonics which appear above them (for
example, REFERENCE).
Tree Traversal Examples
The WriteString() methods in the following examples are written using
Visual Basic for Application (VBA) with the VISA COM library.
Example 1
Consider the following command:
myScope.WriteString ":CHANNEL1:RANGE 0.5;OFFSET 0"
The colon between CHANNEL1 and RANGE is necessary because
:CHANNEL1:RANGE is a compound command. The semicolon between the
RANGE command and the OFFSET command is required to separate the
two commands or operations. The OFFSET command does not need
:CHANNEL1 preceding it because the :CHANNEL1:RANGE command sets
the parser to the CHANNEL1 node in the tree.
Example 2
Consider the following commands:
myScope.WriteString ":TIMEBASE:REFERENCE CENTER;POSITION 0.00001"
or
myScope.WriteString ":TIMEBASE:REFERENCE CENTER"
myScope.WriteString ":TIMEBASE:POSITION 0.00001"
In the first line of example 2, the "subsystem selector" is implied for the
POSITION command in the compound command.
A second way to send these commands is shown in the second part of the
example. Because the program message terminator places the parser back
at the root of the command tree, you must reselect TIMEBASE to re- enter
the TIMEBASE node before sending the POSITION command.
Example 3
Consider the following command:
myScope.WriteString ":TIMEBASE:REFERENCE CENTER;:CHANNEL1:OFFSET 0"
N O T E
Tree Traversal Rules
A leading colon or a program message terminator (<NL> or EOI true on the last byte) places
the parser at the root of the command tree. A leading colon is a colon that is the first
character of a program header. Executing a subsystem command places the oscilloscope in
that subsystem until a leading colon or a program message terminator is found.
Summary of Contents for Infiniium 90000 Q-Series
Page 1: ...s1 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference...
Page 50: ...50 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 2 Setting Up...
Page 274: ...274 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 14 Digital Commands...
Page 292: ...292 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 15 Disk Commands...
Page 318: ...318 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 16 Display Commands...
Page 364: ...364 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 17 Function Commands...
Page 382: ...382 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 19 Histogram Commands...
Page 412: ...412 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 21 Limit Test Commands...
Page 416: ...416 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 22 Lister Commands...
Page 696: ...696 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 25 Measure Commands...
Page 702: ...702 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 26 Pod Commands...
Page 760: ...760 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 29 Self Test Commands...
Page 818: ...818 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 31 System Commands...
Page 830: ...830 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 32 Time Base Commands...
Page 930: ...930 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 33 Trigger Commands...
Page 1018: ...1018 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 37 Error Messages...
Page 1150: ...1150 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 38 Sample Programs...
Page 1186: ...1186 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference Index...