MDO3000 Programmer Manual.pdf - 第1090页
Appendix D: W aveform T ransfer (WFMOutpre and CUR V e Query) Examples NOTE. The retur ned hexadecimal data values for the Digital Collection ar e formatted without leading zer oes. For ex ample, a 4-byte digital collect…

Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
WFMOutpre? Q uery results
Explanation
YUNIT “State”
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, S
tate. This is query only. (If you would like to determine only this value, use
the WFMOutpre:YUNit? query.)
YMULT 1.0000
This value indicates the multiplying factor to c onvert the data point values from digitizing
levels to the units specified by the
WFMOUTpre:YUNit command. This is query only. (If
you would li
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 you 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
3: The Digital Collection with 4 Bytes Per P oint and MagniVu Off
Goal: Transfer 25 points of Digital Collection data from the oscilloscope to a PC
using 4 bytes per point and MagniVu off.
Command Comment
:DATa:SOUrce DIGita l
:ACQuire:MAGnivu 0
:DATa:START 1
:DATa:STOP 25
:WFMOutpre:ENCdg ASCii
:WF
MOutpre:BYT_Nr 4
:HEADer 1
:VERBose 1
:W
FMOutpre?
Returns the following values. Each v alue represents the current settings that
a
CURVe? query will use to format the data that will be transferred from the
o
scilloscope to a PC or other device (see next table for explanations):
:WFMOUTPRE:BYT_NR 4;BIT_NR 32;ENCDG ASCII;BN_FMT
RI;BYT_OR MSB;WFID "Digital, unknown coupling,
1
00.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;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
FB386,FB366,FB3E6,FB366,FB3E6,FB32E,FB3A2,F B32E,FB3AA,FB366,
FB3EA,FB366,FB3E2,FB36,FB3E6,FB366,FB3E6,FB 346,FB3C6,FB346,FB3C6,
FB34E,FB3C2,FB34E,FB3CA
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual D-5

Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
NOTE. The retur
ned hexadecimal data values for the Digital Collection are
formatted without leading zeroes. For example, a 4-byte digital collection value
of FB386 should be interpreted as 000FB386.
NOTE. You can also use the
WAVFrm?
query, which concatenates the
WFMOutpre?
and
CURVe?
queries.
WFMOutpre? Q uery results
Explanation
WFMOUTPRE:BYT_NR 4
This value specifies the number of bytes per data point in the waveform data. To change
this value automatically, use the WFMOutpre:B YT_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 32
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 s peci fies 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, W FMOutpre:BN_Fmt,: and WFMOutpre:BYT_Or values
using a single command.)
BN_FMT RI
This v a lue 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 specifies the byte order for the BINARY encoding, which in this case is MSB
(most significant byte first, also known as IBM format). To change this value to LSB, use the
WFMOutpre:BYT_Or command. Note: this field is not applicable for AS Cii encoding.
WFID
"Digital, unknown
coupling, 100.0us/div,
10000 points, Digital
mod
e"
This quoted string represents information about the source waveform that would be returned
by a.
WFMOutpre:WFId? query. It cannot be changed.
NR_PT 25
Th
is value indicates the number of data points in the waveform record to be transferred
using the CURVE? query. (If y ou would like to determine only this v alue, use the
WFMOutpre:NR_Pt? query.) Note: this value is typically equal to the full record length,
bu
t y ou also have the option to transfer only a portion of the record length by using the
DATa:STARt and DATa:STOP commands.
P
T_FMT Y
This value indicates the format of the data points in the waveform record. In this case,
the value represents YT format. This is query only – the returned values can be Y for YT
f
ormat or ENV for envelope format (min/max pairs). (If you would like to determine only this
value, use the WFMOutpre:PT_Fmt? query.)
PT_ORDER LINEAR
This value is always LINear.
XUNIT “s”
This value indicates the units of the x-axis of the waveform record. This is determined by the
horizontal settings for the waveform source. For live channels, this value is “s”, representing
seconds. When using the math waveform as a source, the value can be “s” or “Hz”. This
is query only. (If you would like to determine only this value, use the WFMOutpre:XUNit?
query.)
D-6 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual

Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
WFMOutpre? Query results
Explanation
XINCR 100.000
0E-9
This value indicates the time, in seconds, or frequency, in hertz, between data points in the
waveform record. This is query only. (If you would like to determine only this value, use
the WFMOutpre
:XINcr? query.)
XZER0 -500.0000E-6
This v alue in
dicates the time, in seconds, or frequency, in hertz, of the first data point in the
waveform record. This time or frequency is relative to the time of the trigger, which is always
0. So, this XZEro time or frequency can be negative. This is query only. (If you would like to
determine o
nly this value, use the WFMOutpre:XZEro? query.)
PT_OFF 0
This is a que
ry provided only for compatibility with performance oscilloscopes. The
returned value is always 0. ( If you would like to determine only this value, use the
WFMOutpre:PT_Off? query.)
YUNIT “State”
This value indicates the vertical units of data points in the waveform record. This can be
any of sev
eral string values, depending upon the vertical units of the source waveform –
in this case, State. This is query only. (If you would like to determine only this value, use
the WFMOutpre:YUNit? query.)
YMULT 1.0000
This value indicates the multi plyi ng factor to convert the data point values from digitizing
levels t
o the units specified by the
WFMOUTpre:YUNit command. This is query only. (If
you would like to determine only this value, use the WFMO utpre:YMUlt? query.)
YOFF 0.
0E+0
This value indicates the vertical position of the source waveform in digitizing levels. There
are 25 digitizing levels per vertical division. This is query only. (If you would like to determine
only th
is value, use the WFMOutpre:Y OFf? query.)
YZERO 0.0E+0
This v
alue indicates the vertical offset of the source waveform in units specifi ed by the
WFMOUTpre:YUNit command. This is query only. (If you would like to determine only this
value, use the WFMOutpre:YZEro? query.)
Example 4: The Digital Collection with 8 Bytes Per Point and MagniVu Off
Goal
: Transfer 25 points of Digital Collection data from the oscilloscope to a PC
using 8 bytes per point and MagniVu off.
Command Comment
:D
ATa:SOUrce DIGital
:ACQuire:MAGnivu 0
:DATa:START 1
:DATa:STOP 25
:WFMOutpre:ENCdg ASCii
:WFMOutpre:BYT_Nr 8
:HEADer 1
:VERBose 1
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual D-7