Table 3-3. scpi command index, 4 program message structure, Program message structure -10 – KEPCO TMA VXI-27 User Manual

Page 27: Scpi command index -10, E 3-3)

Advertising
background image

3-10

TMA VXI -27 101602

3.5.4

PROGRAM MESSAGE STRUCTURE

SCPI program messages (commands from controller to power supply) consist of one or more
message units ending in a message terminator. The message terminator is not part of the syntax; it
is defined by the way your programming language indicates the end of a line (such as a “new-
line” or “end-of-line” character). The message unit is a keyword consisting of a single command
or query word followed by a message terminator (e.g., CURR?<newline> or TRIG<end-of-
line>). The message unit may include a data parameter after the keyword separated by a space;
the parameter is usually numeric (e.g., CURR 5<newline>), but may also be a string (e.g.,
OUTP ON<newline>). Figure 3-5 illustrates the message structure, showing how message units
are combined. The following subparagraphs explain each component of the message structure.

NOTE: An alternative to using the message structure for multiple messages defined in the fol-

lowing paragraphs is to send each command as a separate line. In this case each com-
mand must use the full syntax shown in Appendix B.

TABLE 3-3. SCPI COMMAND INDEX

COMMAND

PAR.

REFERENCE

COMMAND

PAR.

REFERENCE

COMMAND

PAR.

REFERENCE

*CLS

B.2

INST:STAT

C.9

STAT:QUES?

C.28

*ESE

B.3

MEAS:CURR?

C.10

STAT:QUES:COND?

C.29

*ESE?

B.4

MEAS:VOLT?

C.11

STAT:QUES:ENAB

C.30

*ESR?

B.5

OUTP:[STAT]

C.12

STAT:QUES:ENAB?

C.31

*IDN?

B.6

OUTP:[STAT}?

C.13

STAT:QUES:INST?

C.32

*OPC, *OPC?

B.7, B.8

[SOUR]:CURR

C.14

STAT:QUES:INST1?

C.33

OPT?

B.9

[SOUR]:CURR?

C.15

STAT:QUES:INST2?

C.34

*RST

B.10

[SOUR]:CURR:TRIG

C.16

STAT:QUES:INST:ENAB, ?

C.35, C.36

*SRE

B.11

[SOUR]:CURR:TRIG?

C.17

STAT:QUES:INST1:ENAB, ?

C.37, C.38

*SRE?

B.12

[SOUR]:VOLT

C.18

STAT:QUES:INST2:ENAB, ?

C.39, C.40

*STB?

B.13

[SOUR]:VOLT?

C.19

STAT:QUES:INST:ISUM?

C.41

*TRG

B.14

[SOUR]:VOLT:TRIG

C.20

STAT:QUES:INST:ISUM:ENAB, ?

C.42, C.43

*TST

B.15

[SOUR]:VOLT:TRIG?

C.21

SYST:ERR

C.44

*WAI

B.16

[SOUR]:FUNC:MODE

C.22

SYST:ERR:CODE?

C.45

INIT[:IMM]

C.2

STAT:OPER:COND?

C.23

SYST:ERR:CODE:ALL?

C.46

INIT:CONT

C.3

STAT:OPER:ENAB

C.24

SYST:LANG

C.47

INIT:CONT?

C.4

STAT:OPER:ENAB?

C.25

SYST:SET

C.48

INST:CAT

C.5

STAT:OPER?

C.26

SYST:VERS?

C.49

INST, INST?

C.6, C.7, C.8

STAT:PRES

C.27

Advertising