Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
Command Comment
:HEADer 1
:VERBose 1
:WFMOutpre?
Returns the following values. Each value represents the current settings that
a
CURVe? quer
y will use to format the data that will be transferred from the
oscilloscope to a PC or other device (see next table for explanations):
:WFMOUTPRE:BYT_NR 1;BI T_NR 8;ENCDG ASCII;BN_FMT
RI;BYT_OR M
SB;WFID "D5, unknown coupling,
100.0us/div, 10000 points, Digitalmode";NR_PT 25;PT_FMT
Y;PT_ORDER LINEAR;XUNI T " s";XINCR 100. 0000E-9;XZE RO
-500.0000
E-6;PT_OFF 0;YUNIT "State";YMULT 1.0000;YOFF
0.0E+0;YZERO 0.0E+0
:CURVe?
Returns the following values. Each value represents a data point:
:CURVe 0,
1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1 ,0,0,0,0,0,0,0,0
NOTE. You can also use the
WAVFrm?
query, which concatenates the
WFMOutpre?
and
CURVe?
queries.
WFMOutpre? Query results
Explanation
WFMOUTPRE:BYT_NR 1
This value specifies the number of bytes per data point in the w aveform data. To change
this value automatically, use the WFMOutpre:BYT_Nr command. Note that changing this
value automatically changes the
BIT_NR value accordingly. (This value can also be set
using the DATa:WIDth command.)
BIT_NR 8
This value specifies the number of bits per data point in the waveform data. To change this
value, use the WFMOutpre:BIT_Nr command. Note that changing this value automatically
changes the
BYT_NR value accordingly.
ENCDG ASCII
This value specifies the encoding of the waveform data. To change this value (the
other possibility is BINARY), use the WFMOutpre:ENCdg command. (This value can
also be set using the DATa:ENCdg command, which provides the ability to set the
WFMOutpre:ENCdg, WFMO utpre:BN_Fmt,: and WFMOutpre: BYT_Or values
using a single command.)
BN_FMT RI
This value specifies the binary format, which in this case is RI (signed integer). To change
this value (the other possibility is RP or positive integer), use the WFMOutpre:BN_Fmt
command. Note: this field is not applicable for ASCii encoding.
BYT_OR MSB
This value specifi es the b yte order for the BINARY encoding, which in this case is MSB
(most significant byte fi rst, also known as IBM format). To change this value to LSB, use the
WFMOutpre:BYT_Or command. Note: this field is not applicable for ASCii encoding.
WFID "D5, unknown
coupling, 100.0us/div,
10000 points, Digital
mode"
This quoted string represents information about the source waveform that would be returned
by a.
WFMOutpre:WFId? query. It cannot be changed.
D-4 MSO54, MSO56, MSO58, MSO58LP Programmer