beautypg.com

3 conventions, 4 queries, Conventions -8 – AMETEK M130 User Manual

Page 58: Queries -8

background image

IEEE 488.2 and SCPI Command Operation

Sorensen Ethernet Option

3-8

M130/131 Programming Manual

3.3.3

C

ONVENTIONS

SCPI uses the conventions where optional commands and parameters are
enclosed by “[ ]”. Additionally the shorthand version of a command is indicated
by capital letters. The optional parameter “[n]” selects the auxiliary channel
number (power supply) being commanded. If “[n]” is not specified, the default
master channel 1 is automatically selected. Channel 1 selects the master unit
and channels 2-31 select an auxiliary unit attached with the M131 option.
Selecting the global channel 0 is allowed only for the TRIGgerred[n] commands.

For example,

SOURce[n]:VOLTage[:LEVel][:IMMediate][:AMPLitude] 120.0

can be written as

SOURce[n]:VOLTage 120.0

// for any channel

or

SOUR:VOLT 120.0

// for default master channel 1

3.3.4

Q

UERIES

The query syntax is identical to the command syntax with a “?” appended and
no additional parameters/arguments following. For example, to query the
programmed voltage, send the string: SOURce:VOLTage?. A subsequent
device read will return a value such as “33.000”. For Ethernet, all queries are
terminated with a carriage return. For GPIB controllers that require termination
characters, all queries are terminated with a carriage return and line feed (0x0D
0x0A). When the supply has nothing to report, its output buffer will contain two
ASCII characters: a carriage return and linefeed (in decimal the values are:
<13><10>).

This manual is related to the following products: