MDO3000 Programmer Manual.pdf - 第1093页

Appendix D: W aveform T ransfer (WFMOutpre and CUR V e Query) Examples WFMOutpre? Query results Explanation WFID "Di gital, unkn own coupling, 100.0us/di v, 10000 points, Digital mode" This quoted string repres…

100%1 / 1158
Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
Command Comment
:WFMOutpre?
Returns the following values. Each value represents the current settings that
a
CURVe? query 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 8; BIT_NR 64;E NCDG ASCII; BN_FMT
RI;BYT_OR MSB;WFID "Digital, unknown coupling,
100.0us/div
, 10000 points, Di gital mode" ;NR_PT 25;P T_FMT
Y;PT_ORDER LINEAR;XUNIT "s";XINCR 10 0.0000E-9;XZERO
-500.0000E-6;PT_OFF 0;YUNIT "State";YMULT 1.0000;YOFF
0.0E+0;YZE
RO 0.0E+0
:CURVe?
Returns the
following values. Each value represents a data point:
:CURVe
80000FB386,E0000FB386,80000FB3E6,80000FB3E6,8 0000FB3E6,
C8000FB3A
6,8C000FB3A6, 8C000F B3A6,84000FB3AE,CC000FB3A6,
8C000FB3E6,8C000FB3E6,84000FB3E6,80000FB3E6,8 0000FB3E6,
80000FB3E6,80000FB3E6,A0000FB3C6,80000FB3C6,8 0000FB3C6,
80000FB3
C6,88000FB3C6,8C000FB3C6, 8C00 0FB3C6,84000FB3CE
NOTE. The returned hexadecimal data values for the Digital Collection are
formatted without leading zeroes.
NOTE. You can also use the
WAVFrm?
query, which concatenates the
WFMOutpre?
and
CURVe?
queries.
WFMOutpre? Q uery results
Explanation
WFMOUTPRE:BYT_NR 8
This value species 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 64
This value species 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 es 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 species 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 eld is not applicable for ASCii encoding.
BYT_OR MSB
This value species the byte order for the BINARY encoding, which in this case is MSB
(most signicant byte rst, also known as IBM format). To change this value to LSB, use the
WFMOutpre:BYT_Or command. Note: this eld is not applicable for AS Cii encoding.
D-8 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual
Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
WFMOutpre? Query results
Explanation
WFID "Digital, 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.
NR_PT 25
This value indicates the number of data points in the waveform record to be transferred
using the CURVE? query. (If you would like to determine only this value, use the
WFMOutpre:NR_Pt? query.) Note: this value is typically equal to the full record length,
but you also have the option to transfer only a portion of the record length by using the
DATa:STARt and DATa:STOP commands.
PT_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
format 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 val u e 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. Typic ally, 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.)
XINCR 100.0000E-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 value indicates the time, in seconds, or frequency, in hertz, of the rst 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 only this value, use the WFMOutpre:XZEro? query.)
PT_OFF 0
This is a query provided only for compatibility with other Tektronix oscilloscopes. The
returned value is always 0. ( If you would like to determine only this value, use the
WFMOutpre:PT_Off? query.)
YUNI
T “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, 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 to the units spec i ed 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 this value, use the WFMOutpre:YOFf? query.)
YZERO 0.0E+0
This value indicates the vertical offset of the source waveform in units speci ed by the
WFMOUTpre:YUNit command. This is query only. (If you would like to determine only this
value, use the WFMOutpre:YZEro? query.)
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual D-9
Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
Example 5 : The
Digital Collection with 4 Bytes Per Point and MagniVu On
Goal: Transfer 25 points of Digital Collection data from the oscilloscope to a PC
using 4 bytes per point and MagniVu on.
Command Comment
:DATa:SOUrce DIGital
:ACQuire:MAGnivu 1
:DATa:START 1
:DATa:STOP 25
:WFMOutpre:ENCdg ASCii
:WFMOutpre:BYT_Nr 4
:HEADer 1
:VERBose 1
:WFMOutpre?
Returns the following values. Each value represents the current settings that
a
CURVe? 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 4; BIT_NR 32;E NCDG ASCII; BN_FMT
RI;BYT_OR MSB;WFID "Digital, unknown coupling,
100.0us/div, 10000 points, Di gital mode" ;NR_PT 25;P T_FMT
Y;PT_ORDER LINEAR;XUNIT "s";XINCR 1. 2121E-9;XZERO
-6.0606E-6;PT_OFF 0; YUNIT "Stat e";YMULT 1. 0000;YOFF
0.0E+0;YZERO 0.0E+0
:CURVe?
Returns the following values. Each value represents a data point:
:CURVe
FB6E6,FB666,FB6E6,FB666,FB666,FB6E6,FB666,FB6 E6,FB666,
FB666, FB6E6,FB666,F B6E6,FB6E6,FB666,FB6E6,FB666,FB666,
FB6E6,FB666,FB6E6,FB6E6,FB666,FB6E6,FB666
NOTE. The returned hexadecimal data values for the Digital Collection are
formatted without leading zeroes.
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 species 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 species the number of bits per data point in the waveform data. To change this
value, use the WFMOutpre:BIT_Nrcommand. Note that changing this value automatically
changes the
BYT_NR value accordingly.
D-10 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual