Stanford Research Systems SR865A Operation Manual page 156

4 mhz dsp lock-in amplifier
Table of Contents

Advertisement

138
Programming
If capture is waiting for a hardware trigger to start capture, then all 3 bits remain 0 until
the trigger is received. Once capture is started, bits 0 and 1 both become 1 (giving a
return value of 3).
Bit 0 remains 1 while capture is recording data. After receiving the
command, bit 0 may remain 1 until the current 2kbyte block of data is filled.
If the capture buffer wraps around, then bit 2 becomes 1; this occurs at the end of a
OneShot capture, or when a Continuous capture begins overwriting old data.
Bits 1 and 2, once set, will remain set until cleared by resetting the capture system with a
CAPTURECFG
Example
CAPTURESTAT?
CAPTUREBYTES?
The
CAPTUREBYTES?
captured thus far. This query is "live" and may be used to monitor the progress of the
capture. For Continuous captures that are overwriting old data, the number of captured
bytes decreases by 2048 bytes before increasing again.
After capture has stopped, this query returns the actual number of bytes of non-zero data.
For example, an 8kB buffer is being filled with data being captured every trigger. After
capturing 1250 samples of X (5000 bytes of capture), capture is stopped.
CAPTUREBYTES? will report 5000 bytes of data, while CAPTUREPROG? will report
6 kB of data as it counts in 2kB increments. CAPTUREVAL? 1249 will return the last
sample captured before capture was stopped, and CAPTUREVAL? 1250 will return zero.
Example
CAPTUREBTYES?
CAPTUREPROG?
The
CAPTUREPROG?
during the most recent capture acquisition. Capture must be stopped before performing
this query.
If the acquisition wrapped during operating in Continuous mode,
simply return the value of
Example
CAPTUREPROG?
CAPTUREVAL? [ n ]
The
CAPTUREVAL?
format. Data is returned as comma-separated values of one, two, or four floating point
SR865A DSP Lock-in Amplifier
1
2
Capture triggered, either by
TTL or remote command
2
4
Capture wrapped
,
CAPTURELEN or CAPTURESTART
Returns the capture buffer state
query returns the number of bytes of data that have been
Returns the amount of data captured, in bytes
query returns the number of kilobytes of data that were written
CAPTURELEN
Returns the amount of data captured, in kilobytes
query returns data from the capture buffer in plain text (ASCII)
command.
.
Chapter 4
CAPTURESTOP
CAPTUREPROG?
will

Advertisement

Table of Contents
loading

Table of Contents