Command Groups
NOTE. The
WFMIn
pre:BYT_Nr
and
WFMInpre:BI T_Nr
settings are directly
related; setting one causes the other to be set accordingly. For example,
WFMInpre:B YT_Nr 2
causes
WFMInpre_B IT_Nr
tobesetto16(2*8bits/byte).
Similarly, setting
WFMInpre:BIT _Nr
to 16 causes
WFMInpre:B YT_Nr
to be
set to 2.
Table 2-45:
Example Command Sequence for Transferring Waveform Data from Computer to Oscilloscope
Item Descriptio
n
:DATa:DES
Tination REF2
Selects RE
F 2 as the internal reference memory location that the incoming
waveform will be transferred to.
:DATa:STARt 1 This, along with DATa:STOP, specifies the starting and ending points of the
waveform record that will be transferred to REF2.
:DATa:STOP
10000
:WFMInpre:DOMain TIMe Speci fies that the data to be transferred is a time domain waveform, and
therefo
re should be treated as integers (as opposed to a frequency domain
waveform, which uses floating point).
:WFMIn
pre:BYT_Nr 1
Sets the number of bytes per data point in the waveform data to be sent
to RE F2 to 1.
:WFMInpre:BIT_Nr 8
Sets the number of bits per binary data point to 8.
:WFMInpre:ENCdg ASCII Specifies that the incoming waveform uses the ASCII format.
:WFMInpre:NR_Pt 10000
Sets the number of data points that are being sent to REF2 to 10000.
:WFMInpre:PT_Fmt Y
Specifies that the incoming waveform is a normal one, where one ASCII
or b
inary data point is transmitted for each point in the waveform record
(as opposed to envelope).
:WFMInpre:XUNit "S" Sets the horizontal units of the x-axis of the data points to seconds.
:W
FMInpre:XINcr 4.0000E-9
Sets the horizontal interval between the incoming waveform points, using the
units specified above.
:WFMInpre:XZERo -20.0000E-6
Sets the position value of the first data point in the incoming waveform record.
:WFMInpre:YUNit "V"
Specifies that Volts are the vertical units of the data points being sent.
:WFMInpre:YMUlt 4.0000E-3
Specifies the vertical scale multiplying factor used to convert the incoming
data points from digitizing levels into the units specified above.
:WFMInpre:YOFf 0.0E+0 Specifies that the vertical position in d igitizing levels of the incoming reference
waveform is 0.
:WFMInpre:YZEro 0.0E+0
Specifies that the vertical offset of the incoming waveform is 0.
:HEADer 1 Turning on HEADer and VERBose will allow the WFMInpre? parameters
to be viewed in context.
:VERBose 1
:WFMInpre? Do this query to verify your settings.
:CURVe <10,000 ASCIi data points, each separated
by a comma>
Sends the data points to REF2.
2-100 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual