3.3
Getting
Started with
GPIB
This section is intended
as
a
quick pde to
the
GPIB
syntax
and
commands
used
by
the
LDC-3700
Series
Laser
Diode Controller. The LDC-3700
Series
bser
Diode Controller's unique (devicedependent) commands
are
described in Chapter
4.
3.3.1
Overview
of
the
LDC-3700
Series
Laser
Diode
Controller Syntax
Generally,
a
command or query is entered (spelled)
as
shown in Table
4.1.
The commnndlquery MUST CONTAIN
all
of the letters which are shown
in
upper
case
in
Figure
4.2
and
Table 4.1. However, the LDC-3700
Series
Laser
Diode Controller's command parser is
NOT
CASE
SENSITNE
so
upper or lower
case
may
be
used
in
any
combination. The lower
case
letters shown with the commands in Section
4.4
(LDC-3700 Series Device-Dependent
Commands) are optional letters, and
may
be
used
for
clarity.
For example, the following commands
are
equal,
and
only the
first
three
letters "DIS"
are
required,
while the other letters,
"play"
are
optional.
"LAS:DISlm, "LAS:DISPLAY l", and "LAS:DisPlm.
The
syntax
of the LDC-3700
Series
Laser Diode Controller commands follows
the
rules laid out in the
IEEE-488.2
standard
Colons
(:)
indicate the
start
of
a
new
command
path,
while semicolons
(;)
indicate a separation of
commands
within
a
command string.
A
leading semicolon on
a
command
may
be
used
to
return
the LDC-3700
Series Laser Diode Controller command parser
to
the command
path
root
(see
Figure
4.2).
Spaces
or white space
(see
Section 3.3.2 for
a
definition of white
space)
may
be placed anywhere in
a
command
string (after the command header or query question
mark),
and
must
be
used
to
separate
the command
(header)
from the
first
parameter (or program
data).
The following examples show valid
syntax
for commands
with
the
LDC-3700
Series
Laser
Diode Controller:
The following
are
examples of invalid
syntax
for the LDC-3700 Series Laser Diode Controller.
These
command
strings
would produce an erroneous
result,
as
explained:
"TEC:MODE
T"
"TEC:MODE:R DEC"
3.3.2
Using
Commands
with
Parameters
-Missing colon, MODE? expected.
Missing semicolon, DEC command
generates an error.
-Space
not allowed before question
mark,
DIS cdmmand expected.
-Space
missing
between LDI
command and the parameter value,
33.
Some
commands
expect
a
parameter. For example,
if
the temperature set point is to be entered, the command
could
be
"TEC:T
30". This would set
the
LDC-3700 Series Laser Diode Controller's
set
point temperature to 30°C.
If
a
single parameter is
expected,
it should follow the
command
with at least one space between the command and the
parameter.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com