3-6
MAT FULL RACK/ 022300
3.6.2
SCPI PROGRAMMING
SCPI (Standard Commands for Programmable Instruments) is a programming language con-
forming to the protocols and standards established by IEEE 488.2 (reference document
ANSI/
IEEE Std 488.2, IEEE Standard Codes, ForMATs, Protocols, and Common Commands
). SCPI com-
mands are sent to the MAT Power Supply as output strings within the selected programming
language (PASCAL, BASIC, etc.) in accordance with the manufacturer’s requirements for the
particular GPIB interface card used and the Kepco controller selected (see PAR 1.2.)
Figure 3-3 illustrates typical SCPI commands used for remote programming of the MAT power
supply. For the complete command set, and detailed SCPI programming information, consult
the Technical Manual for the applicable controller (the SCPI command sets among Kepco con-
trollers are slightly different). See PAR.3.2 to establish the MAT power supply Control Bus (BIT-
BUS) address.
FIGURE 3-3. TREE DIAGRAM OF SCPI COMMANDS USED WITH MAT POWER SUPPLIES
3.6.2.1
SCPI PROGRAM EXAMPLE
Figure 3-4 is an example of a program using SCPI commands to program the MAT Power Sup-
ply. The program illustrated is for a configuration using an IBM PC or compatible with a National
Instruments GPIB interface card. (It will be necessary to consult the manufacturer’s data to
achieve comparable functions with an interface card from a different manufacturer.) This pro-
gram sets output voltage (Voltage mode) or voltage limit (Current mode) to 5V, and current limit
(Voltage mode) or output current (Current mode) to 1A, then reads the measured (actual) volt-
age and current, then prints the measurements.
INITiate
[:IMMediate]
:CONTinuous
MEASure
:CURRent?
:VOLTage?
OUTPut
[:STATe]
[SOURce:]
VOLTage
[:LEVel]
[:IMMediate]
:TRIGgered
CURRent
[:LEVel]
[:IMMediate]
:TRIGgered
FUNCtion
:MODE
ROOT : (colon)
STATus
:OPERation
:CONDition?
:ENABle
[:EVENt]?
:PRESet
:QUEStionable
:CONDition?
:ENABle
[:EVENt]?
SYSTem
:ERRor?
:LANGuage