6-8
KLR-DEV 060713
• Several commands may be sent as one message; a line feed terminates the message.
Commands sent together are separated by a semicolon (;). The first command in a mes-
sage starts at the root, therefor a colon (:) at the beginning is not mandatory.
e.g., the command
meas:volt?;:curr?
will read output voltage and programmed cur-
rent since the colon preceding
curr?
indicates that
curr?
is not part of the
meas
com-
mand and starts at the root.
• UPPER case letters in mnemonics are mandatory (short form). Lower case letters may
either be omitted, or must be specified completely (long form)
e.g.,
INSTrument
(long form) has the same effect as
INST
(short form).
• Commands/queries may be given in upper/lower case (long form)
e.g.,
SoUrCe
is allowed.
• Text shown between brackets [ ] is optional.
e.g.,
:[SOUR:]VOLT:[LEV:]TRIG[:AMPL]?
has the same effect as
:VOLT:TRIG?
6.7.1
EXCEPTIONS TO THE RULES
The volt:lim:high and curr:lim:high commands do not follow the SCPI rules for syntax parsing.
Always send the entire string to insure the commands execute correctly. For example:
VOLT:LIM:HIGH? MIN;:volt:lim:high? max
and
VOLT:LIM:HIGH?MIN;lim:high? max
will
correctly return the min and max voltage limit levels of the power supply. Sending
VOLT:LIM:HIGH? MIN;high? max
will not work and will result in an error.
6.8
PROGRAMMING EXAMPLES
Figure 6-3 is a programming example that can be used over any interface to measure voltage
and current. Table 6-2 describes the VISA resource string corresponding to the Interface chosen
for communication.
TABLE 6-2. VISA RESOURCE STRING CORRESPONDING TO INTERFACE
INTERFACE
VISA RESOURCE STRING
COMMENT
GPIB
GPIB::xx::INSTR
The GPIB address replaces xx.
SERIAL
ASRLy::INSTR
The com port number replaces y.
LAN-SCPI-RAW
TCIP::192.168.0.100::5025::SOCKET
This is the fastest LAN interface, similar to the serial port with
automatic XON XOFF protocol support.
LAN-VXI-11
TCIP::192.168.0.100::INSTR
This LAN interface requires a more complex handshake for data
and is inherently slower than a socket interface. It is similar to the
GPIB interface where you tell the device when to take data and
when it is acceptable to receive data.
Содержание KLR SERIES
Страница 2: ......
Страница 10: ......
Страница 42: ......
Страница 58: ...4 16 KLR DEV 060713 FIGURE 4 10 FUNCTION GENERATOR PANEL FIGURE 4 11 CONFIGURE User Sequence vi BLOCK DIAGRAM ...
Страница 59: ......
Страница 60: ......
Страница 61: ...FIGURE 4 13 FUNCTION GE ...
Страница 62: ......
Страница 86: ......
Страница 90: ......