Keithley 2001 Operator's Manual page 30

Multimeter
Hide thumbs Also See for 2001:
Table of Contents

Advertisement

Getting Started
:VOLT:DC:RANG:AUTO
The root command for the above example is [:SENSe[1]].
This is an optional command word (as indicated by the
brackets in the table) and need not be used.
Note that there must be a space between the command word
and the parameter. In the above example, there is a space
between the :AUTO command word and the ON parameter.
SCPI command words and common commands are not case
sensitive. They can be sent in uppercase or lowercase. The
commands in
Table 2-7
show a combination of upper and
lowercase characters. The uppercase characters identify the
short-form version of the command. For example, all the
following versions of the same program message are valid:
:ARM:LAYER2:SOURCE MANUAL
:ARM:LAY2:SOURCE MAN
:ARM:LAY2:SOUR MAN
:arm:layer2:source manual
:arm:lay2:sour man
:Arm:Lay2:Sour Man
:ArM:LaY2:SouR MaN
Parameters
As previously mentioned, a parameter is separated from the
command word by a space character. The parameter can
consist of one or more data types, such as integer, real,
Boolean, string, name, or list. Some examples follow:
1. :voltage:dc:resolution 4
2. :trigger:delay 0.5
3. :display:window2:text:state on
4. :display:window2:text:data 'Model 2001'
5. :voltage:dc:average:tcontrol moving
6. :route:scan:internal (@1:3,5)
1. 4  This integer parameter sets the DC voltage
resolution to 3.5 digits.
2. 0.5  This real number parameter sets the trigger delay
period in seconds.
3. ON  This Boolean parameter enables the display of
user text messages on the display, in this case, the
bottom line. A "1" could have been used instead. "OFF"
or "0" disables the function.
4. Model 2001  This string parameter specifies the user
text message. Single or double quotes delimit the
message. Note that the previous command must be sent
to enable the display of user text messages.
5. MOVing  This name parameter specifies the mode of
the averaging or advanced digital filter.
2-16
ON
6. (@1:3,5)  This list parameter specifies an internal
scan list for the Model 2001-SCAN. Parentheses are
used to enclose the list of channels. The @ symbol must
precede the first channel in the list. A colon is used as a
separator for the range limits (channels 1 through 3).
Each channel or channel range in the list must be
separated by a comma.
Multiple commands
Multiple commands can be sent in the same message as long
as they are separated by semicolons. For example:
Instead of sending ...
:system:error?
:system:preset
You can send ...
:system:error?;preset
When the above message is sent, the first command word is
recognized as the root command. When the command parser
sees a colon after a semicolon, it resets the path pointer to the
root before processing the next command.
Proper use of the path pointer allows commands in the same
command level to be serviced without having to retype the
entire command path. For example, the command
:ARM:LAYer2:SOURce MANual moves the path pointer
down to the last command level in the path. As a result, the
:count, :delay, and :timer commands and their companion
query commands can be included in the same program
message without repeating the entire path. Some examples
follow:
Instead of sending ...
:arm:lay2:sour man;:arm:lay2:sour?
You can send ...
:arm:lay2:sour man;sour?
Instead of sending ...
:trig:coun 1;:trig:del 1;:trig:tim 1
You can send ...
:trig:coun 1;del 1;tim 1
Notice that the colon for the additional commands is not
included. Remember, when a colon (not preceded by a
semicolon) is seen, the path pointer moves down to the next
command level. For example:
:trig:del 1;tcon:prot asyn
2001-900-01 Rev. K / August 2010

Advertisement

Table of Contents
loading

Table of Contents