13
Chapter 4 Command interface
4.1 ST1778 RS232C
As the most serial ports, ST1778 is not strictly based on RS-232, and uses only a minimal subset of the
9 pins. Only three wires are actually used:
Signal
Abbr.
Pin No.
Send data
TXD
3
Receive
data
RXD
2
Ground
GND
5
The connection of instrument and PC:
TXD(2)
PC
RXD(3)
GND(5)
(2) RXD
ST1778
(3) TXD
(5) GND
As seen in the figure above, the pin definition of ST1778 is different from the 9-pin configuration in IBM
AT. Connection has to be 1:1, no crossover of Tx/Rx. Users can order a serial port cable from
Sourcetronic.
4.2 SCPI commands
<NR1> :Integer, as: 123
。
<NR2> :fixed-point, as: 12.3
。
<NR3> :floating point, as:
12.345……
。
<LF>
:Command terminator (Enter), which is 0x0A as a hexadecimal number or 10 in decimal. The
terminator should be added after all commands, otherwise, the instrument stays in waiting status. When
there is data returned, each data is terminated as <LF>.
4.2.1 General command set
*IDN?
Check the manufacturer, model, edition and firmware revision date. The returned format is as below:
“Sourcetronic,ST1778,V1.0.6,@2013.12”
*STA
Start the output.
*STO
Stop the output
4.2.2 ST1778 sub-system commands
The following is the root command set for the SCPI sub- system
●DEVIce ●MEMOry ●PARAmeter ●REMOte ●STATe ●SWITch ●SYSTem ●WORKing