Appendix D: Waveform Transfer (WFMOutpre and CURVe Query) Examples
Command Comment
:DATa:SOUrce
CH1_D1
:ACQuire:MAGnivu 0
: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 or other device (see next table for explanations):
:WFMOUTPRE:BYT_NR 4;BI T_NR 32;ENCDG ASCII;BN_FMT
RI;BYT_
OR MSB;WFID "Digital, unknown coupling,
100.0us/div, 10000 points, Digital mode";NR_PT 25;PT_FMT
Y;PT_ORDER LINEAR;XUNI T " s";XINCR 100. 0000E-9;XZE RO
-500.0
000E-6;PT_OFF 0;YUNIT "State";YMULT 1.0000;YO FF
0.0E+0;YZERO 0.0E+0
:CURVe?
Returns the following values. Each value represents a data point:
:CURV
e
FB386,FB366,FB3E6,FB 366,FB3E6,F B32E,FB3A2,FB32E,FB3AA,FB366,
FB3EA,FB366,FB3E2,FB 36,FB3E6,FB 366,FB3E6,FB346,FB3C6,FB346,FB3 C6,
FB34
E,FB3C2,FB34E,FB3CA
NOTE. The returned hexadecimal data values are formatted without leading
zeroes. For example, a 4-byte digital value of FB386 should be interpreted
as 000FB386.
NOTE. You can also use the
WAVFrm?
query, which concatenates the
WFMOutpre?
and
CURVe?
queries.
WFMOutpre? Query 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 w aveform data. To change this
value, use the WFMOutpre:BIT_Nr command. Note that changing this value automatically
changes the
BYT_NR value accordingly.
D-6 MSO54, MSO56, MSO58, MSO58LP Programmer