![Vallen spotWave 201 Instruction Manual Download Page 31](http://html1.mh-extra.com/html/vallen/spotwave-201/spotwave-201_instruction-manual_3233499031.webp)
2022-07
file: spotwave_instructions_manual.docx
31 of 50
get_tr_data
Read transient data sets. The records are deleted from the device memory afterwards.
Command:
get_tr_data [a]
[a]
Return data in ASCII format as floats in µV,
otherwise ADC values as binary (int16)
Valid state:
RECORDING | IDLE
Response (binary):
TRAI=1 T=43686000 NS=768\n
<ADC values as binary data (2 * 768 bytes)>
TRAI=2 T=43686983 NS=692\n
<ADC values as binary data (2 * 692 bytes)>
\n
Response with
a
flag (ASCII):
TRAI=1 T=43686000 NS=768\n
7127\n
8640\n
[...]
-3453\n
-3444\n
TRAI=2 T=43686983 NS=692\n
8177\n
8212\n
[...]
4846\n
4557\n
\n
The return structure has got a header that contains the information of the transient recorder index (
TRAI
),
arrival time (
T
) and number of samples (
NS
). The header line is followed by the ADC samples as binary data
(
int16
,
2 x NS
bytes). The conversion to µV is done using the factor
<adc2uv>
which is available via the
get_info
or
get_setup
command. The conversion to µV is done using the factor
<adc2uv>
which is
available via the
get_info
or
get_setup
command.
TRAI
transient recorder index
T
time period since the start of acquisition in tics
𝑇
µ𝑠
=
𝑇
𝑓
𝑠
⋅
10
6
=
𝑇
2
NS
the number of samples in the waveform
The last line is an empty line.
get_tr_snapshot
Read snapshot of transient data. The sampling rate is configured with the
set_acq tr_decimation
command.
If the CCT interval (configured with the
set_cct interval
command) is
-1
, the first acquired sample is
synchronized with the start of the pulse.