System information

G2T Programmers Guide Rev-A 17-Nov-2014
60
6.1.8. Commands to Evaluate and Control Status (488.2)
The following commands are used to evaluate and control the
status of the device. Unless noted, these commands are part of
the IEEE 488.2 standard command set. Recall that each interface
maintains its own set of registers (but share the Fault Queue).
*STB?returns the value of the SBR at the start of the
command. Note that the effect of the command on MAV
won’t be visible until after the command is executed. The
most effective place for this command is as the last
command of a compound command. Bits 7, 2, 1 and 0 are
not used by this device at this time. Host programs should
mask them out.
*SRE n n is an integer value between 0 and 255. N is
“anded” with 00111000 and set in the SRER. This
corresponds to the bits that are in use in SBR. If at least one
bit is set in SRER and its corresponding bit in SBR is also set
then the MSS bit in SBR is set. Each time the SRER is
changed (by this command), the value of MSS is re-
evaluated.
*SRE? – returns the value of the SRER as an integer between
0 and 255. Note that any unused bits are mapped out
whenever a value is set in SRER. To illustrate the following
command: SRE 255;SRE? Returns 56.
*ESR? returns the value of the ESR as an integer between
0 and 255. Per 488.2, the reading of the ESR clears it.
*ESE? returns the current value of the ESER as an integer
between 0 and 255. The value of ESER does not change.
*ESE n sets the integer value n (between 0 and 255) into
ESER. If at least one of the bits in ESER is set at the same
time as its corresponding bit in ESR, then the ESB bit in SBR is
also set. Each time ESER is changed (by this command),
the value of ESB and MSS are re-evaluated.
*PSC n sets the integer value n (0 or 1) in the PSC register.
If the register is 1, ESER and SRER are cleared on each
restart. If its value is zero, ESER and SRER are preserved. One
possible use of this feature is that by setting the PON bit in
ESER, setting the ESB bit in SRER and setting 0 in PSC, the
device requests service from its controller on power-up.
(This works only on GPIB.)