Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
WFMOutpre? Query results
Explanation
YUNIT “V”
This value indicates the vertical units of data points in the waveform record. This can be
any of several string values, depending upon the vertical units of the source waveform –
in this case, v
olts. T his is query only. (If you would like to determine only this value, use
the WFMOutpre:YUNit? query.)
YMULT 4.0000
E-3
This value indicates the multiplying factor to convert the data point values from digitizing
levels to the units s pecified by the
WFMOUTpre:YUNit command. This is query only. (If
youwouldli
ke to determine only this value, use the WFMOutpre:YMUlt? query.)
YOFF 0.0E+0
This value i
ndicates the vertical position of the source waveform in digitizing levels. There
are 25 digitizing levels per vertical division. This is query only. (If y ou would like to determine
only this value, use the WFMOutpre:YOFf? query.)
YZERO 0.0E+0
This value indicates the vertical offset of the source waveform in units specified by the
WFMOUTpr
e:YUNit
command. This is query only. (If you would like to determine only this
value, use the WFMOutpre:YZEro? query.)
Example
2: Digital Waveform (Channels DO-D15)
Goal: Transfer 25 points of digital channel waveform data from the oscilloscope
to a PC.
Command Comment
:DATa:SOUrce D5
:DATa:START 1
:DATa:STOP 25
:WFMOutpre:ENCdg ASCii
:WFMOutpre:BYT_Nr 1
:HE
ADer 1
:VERBose 1
:WFMOutpre?
Returns the following values. Each v alue represents the current settings that
a
C
URVe?
query will use to format the data that will be transferred from the
oscilloscope to a PC o r other device (see next table for explanations):
:WFMOUTPRE:BYT_NR 1;BIT _NR 8;ENCDG ASCII;BN_FMT
R
I;BYT_OR MSB;WFID "D5, unknown coupling,
100.0us/div, 10000 points, Digital mode";NR_PT 25; PT_FMT
Y;PT_ORDER LINEAR;XUNIT "s";XINCR 100.0000E-9;XZERO
-
500.0000E-6;PT_OFF 0;YUN IT "Sta te";YMULT 1.000 0;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.
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual D-3