Command Groups
Scaling Waveform Data
Once you transf
er waveform data from an oscilloscope to a computer, you can
convert the data points (which are digitizing levels) into engineering units such as
Volts or Amps for analysis using information from the waveform preamble.
The following is an example for converting transferred data into the appropriate
engineering units. The transfer data is from an analog waveform in YT (single
point) format. (See WFMInpre:PT_Fmt for the definition of the point
formats.)
The data points returned from the
CURVE? query for analog channel data are in
digitizing levels. The YMULT value is in vertical units (e.g. volts) per digitizing
level.
Formula for computing horizontal (time) point value:
X
i
= XZEro + XINcr * ( i - 1)
Formula for computing vertical (amplitude) point value:
Y
i
= YZEro + (YMUlt * DataPoint
i
)
where:
i is the index of a curve data point (1–based: first data point is point number 1)
X
i
is the ith horizontal value in XUNits
Y
i
is the ith vertical value in YUNits
DataPoint
i
is the waveform data point value, in digitizing levels.
Commands used:
:DATa:SOUrce CH1
:DATa:START 1
:DATa:STOP 1000
:WFMOutpre:NR_pt? 1000
:WFMOutpre:XUNit? “s”
:WFMOutpre:XZEro? -500.000E-3
:WFMOutpre:XINcr? 1.0000E-3
:WFMOutpre:YUNit? “V”
:WFMOutpre:YZEro? 0.0E+0
:WFMOutpre:YMUlt? 4.0000E-3
:WFMOutpre:BYT_nr? 1
Horizontal (time) values:
X
i
=XZEro+XINcr*(i-1)
=-500ms+1ms*(i–1)
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-101