2 Introduction to Programming
38 Keysight Models 6811C, 6812C, and 6813C Programming Guide
The root level
Note the location of the ROOT node at the top of the tree. Commands at the root
level are at the top level of the command tree. The SCPI interface is at this
location when:
– the ac source is powered on
– a device clear (DCL) is sent to the ac source
– the SCPI interface encounters a message terminator
– the SCPI interface encounters a root specifier
Active header path
In order to properly traverse the command tree, you must understand the concept
of the active header path. When the ac source is turned on (or under any of the
other conditions listed above), the active path is at the root. That means the SCPI
interface is ready to accept any command at the root level, such as OUTPut or
STATe.
If you enter OUTPut, the active header path moves one colon to the right. The
interface is now ready to accept :STATe, :COUPling, :DFI, or :PROTection as the
next header. You must include the colon because it is required between headers.
If you now enter :PROTection, the active path again moves one colon to the right.
The interface is now ready to accept either :CLEar or :DELay as the next header.
If you now enter :CLEar, you have reached the end of the command string. The
active header path remains at :CLEar. If you wished, you could have entered
:CLEar;DELay 20 and it would be accepted as a compound message consisting of:
OUTPut:PROTection:CLEAr and
OUTPut:PROTection:DELay 20
The entire message would be:
OUTPut:PROTection:CLEar;DELay 20
The message terminator after DELay 20 returns the path to the root.