Chapter 5 Remote Interface Reference

An Introduction to the SCPI Language

An Introduction to the SCPI Language

SCPI (gvyvy Py “”vw V) is an

ASCII-based instrument command language designed for test and

measurement instruments. Refer to “Simplified Programming Overview,” starting on page 201, for an introduction to the basic techniques used to program the instrument over the remote interface.

SCPI commands are based on a hierarchical structure, also known as a tree system. In this system, associated commands are grouped together under a common node or root, thus forming subsystems. A portion of the SENSE subsystem is shown below to illustrate the tree system.

SENSe:

VOLTage

:DC:RANGe {<”z >MINimumMAXimum}[,(@<xt >)]

VOLTage

:DC:RANGe? [{(@<xt >)MINimumMAXimum}]

FREQuency

:VOLTage:RANGe {<”z >MINimumMAXimum}[,(@<xt >)]

FREQuency

:VOLTage:RANGe? [{(@<xt >)MINimumMAXimum}]

RESistance

:OCOMpensated {OFFON}[,(@<xt >)]

RESistance

:OCOMpensated? [(@<xt >)]

TEMPerature

:RJUNction? [(@<xt >)]

SENSe is the root keyword of the command, VOLTage and FREQuency are second-level keywords, and DC and VOLTage are third-level keywords. A colon ( F ) separates a command keyword from a lower-level keyword.

296

Page 294
Image 294
HP 34970A manual An Introduction to the Scpi Language, Scpi gvyvy Py vw V is an