Series 2600B System SourceMeter® Instrument Reference Manual
Syntax rules
The following table lists syntax requirements to build well-formed instrument control commands.
Syntax rules for instrument commands
Syntax rule
Case sensitivity:
Instrument
commands are case
sensitive.
For best results,
simply match the
case shown in the
command reference
descriptions.
White space: Not
required in a
function.
Function
parameters: All
functions are
required to have a
set of parentheses ()
immediately
following the
function.
Multiple
parameters: Must
be separated by
commas (,).
Time and date values
Time and date values are represented as the number of seconds since some base. Representing
time as a number of seconds is referred to as "standard time format." There are three time bases:
•
UTC 12:00 am Jan 1, 1970. Some examples of UTC time are reading buffer base timestamps,
adjustment dates, and the value returned by os.time().
•
Instrument on. References time to when the instrument was turned on. The value returned by
os.clock() is referenced to the turn-on time.
•
Event. Time referenced to an event, such as the first reading stored in a reading buffer.
2600BS-901-01 Rev. B / May 2013
Details
Examples
Function and attribute
An example of the scriptVar.save()
names should be in
function (where test8 is the name of the
lowercase characters.
script):
Parameters can use a
combination of lowercase
In the command below, which sets the format of
and uppercase
data transmitted from the instrument to
characters.
double-precision floating point,
format.REAL64 is the attribute constant and
Attribute constants use
format.data is the attribute command:
uppercase characters
Functions can be sent
The following functions, which set digital I/O line
with or without white
3 low, are equivalent:
spaces.
You can specify the
The following function specifies all overlapped
function parameters by
commands in the nodes in group G must
placing them between
complete before commands from other groups
the parentheses. Note
can execute:
that the parentheses are
required even when
there are no parameters
The command below reads the value of the
specified.
local time zone (no parameters are needed):
Some commands require
This command sets the beeper to emit a
multiple parameters,
double-beep at 2400 Hz, with a beep sequence
which must be separated
of 0.5 seconds on, 0.25 seconds off, and then
0.5 seconds on:
by commas (,).
Section 7: TSP command reference
test8.save()
format.data = format.REAL64
digio.writebit(3,0)
digio.writebit (3, 0)
waitcomplete(G)
timezone = localnode.gettimezone()
beeper.beep(0.5, 2400)
delay(0.250)
beeper.beep(0.5, 2400)
7-3