4.5 Commands
4 – 47
*IDN?
Example:
Stanford Research Systems,LDC501,s/n098023,ver2.00
Token Mode
TOKN(?)
{
z
}
Set (query) the token response mode
{
to
z
=
(
OFF 0
,
ON 1
)
}
.
Token response mode controls the formatting of response messages
generated by the LDC500 to remote queries of token-type values.
When
TOKN
OFF
, the LDC500 responds with the numeric version of
the token quantity. When
TOKN
ON
, the text version is returned.
TOKN?
Example:
ON
Response Termination
TERM(?)
{
z
}
Set (query) the token response mode
{
to
z
=
(
NONE 0
,
CR 1
,
LF 2
,
CRLF 3
,
LFCR 4
)
}
.
Response messages generated by the LDC500 will be terminated by
the 0-, 1- or 2-character termination sequence specified by
TERM
.
Note that the
TERM
command is
interface specific
. In other words, if
TERM
LF
is received on the RS-232 interface, and then
TERM
CRLF
is
received on the ethernet interface, then queries received on the RS-
232 interface shall generate response messages terminated with the
LF character, while queries received on the ethernet interface shall
generate response messages terminated by the CR and LF characters.
TERM
settings are saved when the LDC500 is powered o
ff
, and re-
stored at power on. They are not a
ff
ected by
*RST
or
GPAR
.
TERM LF
Example:
Operation Complete
*OPC(?)
The set form,
*OPC
, will set the OPC bit in the Standard Event Status
register; the query form,
*OPC?
, will return the value
1
.
*OPC
is useful for pacing streams of remote commands; the
*OPC
command will not be processed by the command execution of the
LDC500 until all preceding commands have been executed. Note,
however, that commands are considered completed once the hard-
ware settings they require are made; analog settling times are
not
part
of the normal “execution” process. As a result,
*OPC
should not be
used to indicate that new instrument settings have settled; rather, the
usefulness of
*OPC
is in assuring that the remote interface does not
overflow or lose synchronization with a user’s application program.
*OPC?
Example:
LDC500 Series Laser Diode Controllers