Syntax Rules; Using Channel.*() Commands - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Section 11: TSP command reference

Syntax rules

Use these syntax requirements to build well-formed instrument control commands.
Instrument commands are case sensitive. Refer to the command reference descriptions for the
correct case.
The white space in lists of parameters in functions is optional. For example, the following functions
are equivalent:
digio.writebit(3,0)
digio.writebit (3, 0)
All functions must have a set of parentheses () immediately following the function, even if there are
no parameters specified. For example:
waitcomplete(G)
timezone = localnode.gettimezone()
If there are multiple parameters, they must be separated by commas (,). For example:
beeper.beep(0.5, 2400)
If the parameter values are in a range, use a colon (:) to separate them. For example:
scan.create("1A01:1A10")

Using channel.*() commands

Unless otherwise noted, channel.*() remote commands use the channel list syntax described
below.
The channel list is specified according to the syntax presented in the channel list legend. Not all
remote commands support the fully described syntax. Any exclusions are noted in the
documentation for a specific command.
There are five different types of channels available on the supported Series 3700A cards. These
include switch (or relay), backplane, totalizer, DAC, and digital I/O. Even though the channels are
specified in an identical manner, not all remote commands act on all channel types. The
description of each remote command provides more information.
When acting on a range of channels is necessary or more convenient, use the ":" notation. For
example, to specify channels 1 through 20 on slot 4, use 4001:4020:
print(channel.getlabel("4001:4020"))
When acting on an entire slot is necessary or more convenient, use the slotX notation. For
example, to specify all channels on slot 4, use slot4:
print(channel.getlabel("slot4"))
When acting on an entire instrument is necessary or more convenient, use the allslots
notation. For example, to specify channels on all slots (1 through 6), use allslots:
print(channel.getlabel("allslots"))
When a range (including slotX and allslots notation) includes mixed channel types, the
invalid channel types are ignored. If an invalid channel type is individually specified, then an error
is generated.
11-2
Series 3700A System Switch/Multimeter Reference Manual
3700AS-901-01 Rev. D/June 2018

Advertisement

Table of Contents
loading

Table of Contents