Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
Example 5: The
Digital Collection w ith 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_N R 32;E NCDG ASCII;BN_FM T
RI;BYT_OR MSB;WFID "Digital, unkno wn coupling,
100.0us/div, 10000 points, Digital mode";NR_PT 25;PT_F MT
Y;PT_ORDER LINEAR;XUNIT "s";XINCR 1.2121E-9;XZERO
-6.0606E-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
FB6E6,FB666,FB6E6,FB666,FB666 ,FB6E6,FB66 6,FB6E6,FB666,
FB666, FB6E6,FB666,FB6E6, FB6E6,FB666 ,FB6E6,FB666,FB666,
FB6E6,FB666,FB6E6,FB6E6,FB666 ,FB6E6,FB66 6
NOTE. The returned hexadecimal data values for the Digital Collection a re
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 specifies the number of bytes per data point in the waveform 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 32
This value specifies 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