PSY-201 User Guide
GP-UM-PSY-201-11
Page 58 of 105
Table 2 SCPI Common Commands and Queries (GPIB specific)
These commands are common to all GPIB-enabled devices.
Command Parameters Response
Description
*IDN? n/a
<company>,
<model>,
<firmware>,<serial>
Product identification query. Response:
General Photonics PSY-201, V1.3-20141120,
155000000067
*RST
n/a
n/a
Resets most functions to factory-defined
conditions. Each command shows *RST value
if the setting is affected.
*TST?
n/a
0 or 1
This command queries the internal self-test
when system initiates and returns a result. (0)
All tests passed. (1) One or more tests failed.
*ESE <data>
(Range: 0-255)
n/a
Selects the desired bits from the standard
Event Status Enable register. The variable
<data> represents the sum of the bits that will
be enabled.
This register monitors I/O errors and
synchronization conditions such as operation
complete, request control, query error, device
dependent error, status execution error,
command error and power on. The selected
bits are OR’d to become a summary bit (bit 5)
in the byte register which can be queried. The
setting by this command is not affected by the
*RST.
*ESE?
n/a
0 or 1
The Standard Event Status Enable query
returns the value of the *ESE Register.
*ESR? n/a
<value>
(Range: 0 - 255)
The Standard Event Status Register query
returns the value of the Standard Event Status
Register.
*OPC
n/a
n/a
The Operation Complete command sets bit 0 in
the Standard Event Status Register when all
pending operations have finished.
*OPC?
n/a
0 or 1
The Operation Complete query returns the
ASCII character 1 in the Standard Event
Status Register when all pending operations
have finished.
This query stops any new commands from
being processed until the current processing is
complete. This command blocks the controller
until all operations are complete (i.e. the
timeout setting should be longer than the
longest sweep).
*SRE <data>
(Range: 0-255)
n/a
Sets the value of the Service Request Enable
Register. The variable <data> is the decimal
sum of the bits that will be enabled. Bit 6
(value 64) is ignored and cannot be set by this
command.
*SRE? n/a
<value>
(Range: 0–63 or
128–191)
The Service Request Enable query returns the
value of the Service Request Enable Register.
*STB? n/a
<value>
(Range: 0–255)
The Read Status Byte query returns the value
of the status byte without erasing its contents.
*PSC
0 or 1
n/a
The Power-On Status Clear command controls
the automatic power-on clearing of the Service
Request Enable Register, the Standard Event
Status Enable Register, and device-specific
event enable registers. (1) Enable. (0) Disable.
*PSC?
n/a
0 or 1
The Power-On Status Clear query returns the
flag setting as enabled by the *PSC command.