Stanford Research Systems SR830 Manual page 99

Dsp lock-in amplifier
Table of Contents

Advertisement

Remote Programming
OAUX? i
SPTS ?
TRCA ? i, j, k
TRCB ? i, j, k
The SNAP? command is a query only command. The SNAP? command
is used to record various parameters simultaneously, not to transfer data
quickly.
The OAUX? command reads the Aux Input values. The parameter i
selects an Aux Input (1, 2, 3 or 4) and is required. The Aux Input voltages
are returned as ASCII strings with units of Volts. The resolution is
1/3 mV. This command is a query only command.
The SPTS? command queries the number of points stored in the buffer.
Both displays have the same number of points. If the buffer is reset, then
0 is returned. Remember, SPTS? returns N where N is the number of
points - the points are numbered from 0 (oldest) to N-1 (most recent).
The SPTS? command can be sent at any time, even while storage is in
progress. This command is a query only command.
The TRCA? command queries the points stored in the Channel i buffer.
The values are returned as ASCII floating point numbers with the units of
the trace. Multiple points are separated by commas and the final point is
followed by a terminator. For example, the response with two points
might be "-1.234567e-009,+7.654321e-009,".
The parameter i selects the display buffer (i=1, 2) and is required. Points
are read from the buffer starting at bin j (j≥0). A total of k bins are read
(k≥1). To read a single point, set k=1. Both j and k are required. If j+k
exceeds the number of stored points (as returned by the SPTS? query),
then an error occurs. Remember, SPTS? returns N where N is the total
number of bins - the TRCA? command numbers the bins from 0 (oldest)
to N-1 (most recent). If data storage is set to Loop mode, make sure that
storage is paused before reading any data. This is because the points
are indexed relative to the most recent point which is continually
changing.
The TRCB? command queries the points stored in the Channel i buffer.
The values are returned as IEEE format binary floating point numbers
(with the units of the trace). There are 4 bytes per point. Multiple points
are not separated by any delimiter. The bytes can be read directly into a
floating point array (in most languages).
Do not query the IFC (no command in progress) status bit after sending
the TRCB command. This bit will not be set until the transfer is complete.
When using the GPIB interface, EOI is sent with the final byte. The points
must be read using a binary transfer (see your GPIB interface card soft-
ware manual). Make sure that the software is configured to NOT termi-
nate reading upon receipt of a CR or LF.
When using the RS232 interface, the word length must be 8 bits. The
points must be read as binary bytes (no checking for linefeeds, carriage
returns or other control characters). Most serial interface drivers are
designed for ASCII text only and will not work here. In addition, the data
transfer does not pause between bytes. The receiving interface must
always be ready to receive the next byte. In general, using binary trans-
5-16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents