Chapter 5 Remote Interface Reference

An Introduction to the SCPI Language

fy h

You can query the current value of most parameters by adding a

z v( O ) to the command. For example, the following command sets the scan count to 10 sweeps:

"TRIG:COUN 10"

You can query the scan count value by executing:

"TRIG:COUN?"

You can also query the minimum or maximum scan count allowed as follows:

"TRIG:COUN? MIN" "TRIG:COUN? MAX"

hSeY Sy

A command string sent to the instrument may be terminated with a

 

<z

> character. The IEEE-488 RcV (end-or-identify) message can

5

be used to terminate a command string in place of a <z

>

character. A <xv”z

> followed by a <z

> is also accepted.

 

Command string termination will v

reset the current SCPI

 

command path to the root level.

 

 

 

 

YUUU6?DD7< S S

 

 

 

 

 

The IEEE-488.2 standard defines a set of x

 

that

 

perform functions like factory reset, self-test, and status operations.

 

Common commands always begin with an asterisk ( 3 ), are four to

 

five characters in length, and may include one or more parameters.

 

The command keyword is separated from the first parameter by a

 

wvvxz

. Use a x

( I ) to separate multiple commands as

 

shown below:

"*RST; *CLS; *ESE 32; *OPC?"

299

Page 297
Image 297
HP 34970A manual Fy h, HSeY Sy, Wvvxz