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 1;BIT_NR 8;ENCDG BINARY;BN_FMT
RI;BYT_OR MSB;WFID "Ch1, DC coupling, 100.0mV/div,
4.000us/div, 10000 points, Sample mode";NR_PT
10000;PT_FMT Y;PT_ORDER LINEAR;XUNIT "s";XINCR
4.0000E-9;XZERO -20.0000E-6;PT_OFF 0;YUNIT "V";YMULT
4.0000E-3;YOFF 0.0E+0;YZERO 0.0E+0
:CURVE?
Returns 10,000 data points:
:CURVe #510000<10,000 binary bytes of waveform data.>
NOTE.
You can also use the
WAVFrm?
query, which concatenates the
WFMOutpre?
and
CURVe?
queries.
WFMOutpre? Query results
Explanation
BYT_NR 1
This value speci
fi
es the number of bytes per data point in the waveform data. To change
this value automatically, use the
command. Note that changing this
value automatically changes the
BIT_NR
value accordingly. (This value can also be set
using the
command.)
BIT_NR 8
This value speci
fi
es the number of bits per data point in the waveform data. To change this
value, use the
command. Note that changing this value automatically
changes the
BYT_NR
value accordingly.
ENCDG BINARY
This value speci
fi
es the encoding of the waveform data. To change this value (the other
possibility is ASCii), use the
command. (This value can also be set using
the
command, which provides the ability to set the
WFMOutpre:ENCdg,
WFMOutpre:BN_Fmt,
: and
WFMOutpre:BYT_Or
values using a single command.)
BN_FMT RI
This value speci
fi
es 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
command. Note: this
fi
eld is not applicable for ASCii encoding.
BYT_OR MSB
This value speci
fi
es the byte order for the BINARY encoding, which in this case is MSB
(most signi
fi
cant byte
fi
rst). To change this value to LSB, use the
command. Note: this
fi
eld is not applicable for ASCii encoding.
WFID "Ch1, DC
coupling, 100.0mV/div,
4.000us/div, 10000
points, Sample mode"
This quoted string represents information about the source waveform that would be returned
by a.
WFMOutpre:WFId?
query.
NR_PT 10000
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
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
and
commands.
D-2
MSO54, MSO56, MSO58, MSO58LP Programmer
Summary of Contents for MSO54
Page 1: ...xx 5 Series MSO MSO54 MSO56 MSO58 MSO58LP ZZZ Programmer Manual P077130502 077 1305 02 ...
Page 2: ......
Page 3: ...5 Series MSO MSO54 MSO56 MSO58 MSO58LP ZZZ Programmer Manual xx www tek com 077 1305 02 ...
Page 8: ...Preface iv MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 26: ...Command Syntax 2 10 MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 936: ...Status and Events 3 20 MSO54 MSO56 MSO58 MSO58LP Programmer ...
Page 937: ...Appendix A Character Set MSO54 MSO56 MSO58 MSO58LP Programmer A 1 ...
Page 938: ...Appendix A Character Set A 2 MSO54 MSO56 MSO58 MSO58LP Programmer ...