Fluke PM6685R, PM6681R manual Moving down the Command Tree, Example

Models: PM6685 PM6685R PM6681 PM6681R

1 276
Download 276 pages 1.51 Kb
Page 30
Image 30
Command Tree
Introduction to SCPI

Command Tree

￿ Example:

 

SENDINPut:EVENt:HYSTeresis

 

Command Trees like the one below are

Where: INPut is the root node and HYSTer-

used to document the SCPI command set

 

esis is the leaf node.

 

in this manual. The keyword (mnemonic)

Each

colon in the command

header

on the root level of the command tree is

moves the current path down one

level

the name of the subsystem. The follow-

from the root in the command tree. Once

ing example illustrates the Command

you reach the leaf node level in the tree,

Tree of the INPut1 subsystem.

you

can add several leaf nodes without

 

< H E A D E R P> a r a m e t e r shaving to repeat the path from the root

: I N P u t [ 1 ]

level.

 

 

 

: I M P e d a&<nNcuem e r ic

vJusta lufollowe the> MrulesAbelow:X M IN

 

 

: F I L T e r

Always give the full header path, from the

 

 

 

 

 

 

[ : L P A S s ]

root, for the first command in a new pro-

 

 

 

 

 

 

 

 

 

 

[ : S T&<ABToeo]le a n >

gram message.

 

 

 

 

 

 

 

 

 

 

 

 

Figure 3-10Example of an INPut subsystem command tree.

￿The keywords placed in square brackets are optional nodes. This means that you may omit them from the program message.

For the following commands within the same program message, omit the header path and send only the leaf node (without colon).

￿ You can only do this if the header path of the new leaf-node is the same as that of the previous one. If not, the full header path must be given starting with a colon.

Example:

SENDINPUT1:FILTER:LPASS :STATE￿ON

is the same as

SENDINPUT:FILTER￿ON

Moving down the Command Tree

Command header = Header path + leaf node

Once you send the pmt (program message terminator), the first command in a new program message must start from the root.

￿Example:

SENDINPut:EVENt:HYSTeresis MIN;LEVel￿0.5

The command tree shows the paths you should use for the command syntax. A single command header begins from the root level downward to the ‘leaf nodes’ of the command tree. (Leaf nodes are the last keywords in the command header, before the parameters.)

3-10 Command Tree

Page 30
Image 30
Fluke PM6685R, PM6681R manual Moving down the Command Tree, Example