
13.2 Commands
13-19
IM GS210-01EN
Communication Commands
3
2
1
4
5
6
7
8
9
10
11
12
13
14
15
App
Index
:TRACe:DATA:READ? [TM|SF|SL|MF|ML]
Function
Loads stored data.
Syntax
:TRACe:DATA:READ? [TM|SF|SL|MF|ML]
TM
Loads a timestamp.
SF
Loads the source function.
SL
Loads the source level.
MF
Loads the measurement
function.
ML
Loads only the measured
value.
→
For each stored result that is contained
in the stored data, the time stamp, source
function, measurement function, source level,
and measured value are returned in that order.
Subsequent stored results are separated by the
control code <CR><LF>.
Example
:TRAC:DATA:READ?
Description Stored data is loaded as described below.
N represents the number of stored results. n
represents an arbitrary stored result. 1 byte
equals 1 octet.
• When the load format is ASCII
• With no parameters
TM,SF,MF,SL,ML<CR><LF><ASCII data set
1>
...
<ASCII data set N>
<ASCII data set n> consists of
<time stamp n>,<source function
n>,<measurement function n>,<source level
n>,<measured result n>,
and there is a <CR><LF> between <ASCII
data set n – 1> and <ASCII data set n>.
• With parameters
For example, if the parameter TM is specified:
<time stamp 1>,
...
<time stamp N>
• When the load format is binary
• With no parameters
#8<data size><binary data set 1>
...
<binary
data set N>
<data size> represents the total number of
bytes from <binary data set 1> to <binary
data set N> in 8 digits. For example, 24 bytes
is represented as “00000024.”
<binary data set n> consists of
<time stamp n>,<source function
n>,<measurement function n>,<source level
n>,<measured result n>,
where
<time stamp n> is
an IEEE754 double-precision, 8-byte
floating-point number
<source function n> is
one byte of data: 0 for voltage and 1 for
current
<measurement function n> is
one byte of data: 0 for voltage and 1 for
current
<source level n> is
an IEEE754 double-precision, 8-byte
floating-point number
<measured value n> is
an IEEE754 double-precision, 8-byte
floating-point number
• With parameters
For example, if the parameter TM is specified:
#8<time size><time stamp 1>
...
<time stamp
n>
<data size> represents the total number of
bytes from <time stamp 1> to <time stamp
N> in 8 digits. For example, 24 bytes is
represented as “00000024.”
If this command is received when the storage
operation is in process, “NONE” is returned.
:TRACe:DATA:STATistics?
Function
Loads statistical values for stored data.
Syntax
:TRACe:DATA:STATistics?
→
MIN,MAX,MEAN,STDDEV<CR><LF><real
number>,<real number>,<real number>,<real
number>
Returns the statistical values in the following
order: minimum value, maximum value, mean,
and standard deviation.
If there is no stored data, “NAN,NAN,NAN,NAN”
is returned.
Example
:TRAC:DATA:STAT?