![LeCroy DDA-3000A Operator'S Manual Download Page 288](http://html1.mh-extra.com/html/lecroy/dda-3000a/dda-3000a_operators-manual_1866311288.webp)
286
WM-OM-E Rev I
element.
OutResult.ValueArray(True) = newArray ' integer data output
The default waveform function script: explanatory notes
InResult.Samples is the number of points in the incoming waveform.
InResult.DataArray(Boolean) (or InResult1.DataArray or InResult2.DataArray) is the array of input
data. If the Boolean is True you get scaled real data in the units of the trace. If the Boolean is false
you get unscaled integer data in the range -32768 to + 32767.
The value of InResult.Samples is the total number of data in a trace. It is two more than the nominal
value given on the screen. The first point DataArray(0), coincides with the left edge of the screen,
apart from the wobble caused by the trigger-to-sample clock difference. If the trace length is
nominally 500, the right edge of the screen coincides with DataArray(500), which is the 501
st
point.
The last point, number 502, is just off the right of the screen, and is never seen. That is why the loop
in the script runs only to endData - 1.
OutResult.Samples is the number of data in the output trace, and is set to be the same as the
number of data in the input trace. If you set the output length less than the input length, you get a
shorter trace, the remainder being made of zeroes. If you try to set the output values to something
illegal, you may find that a part of the trace retains the values from a previous acquisition.
If you try to set something outside the bounds of an array, or you make some other error, or
something overflows, or you ask for something impossible, such as log(-13), the instrument tells
you the line number, and the nature of the problem. Other types of error may not be given the
correct line number, for example, if "Next" or "End If" is omitted, because VBS does not know where
it should have been.
UnscaledData is simply a copy of the input data set.
ReDim newDataArray(OutResult.Samples) defines an array of data for use as a scratch pad. Dim
is short for Dimension, which is used in Visual Basic to declare a variable (even if it only has one
element, in which case you omit the size of the array).
InResult.DataArray(False) means that the data are signed integers in the range -32768 to 32767.
False is a Boolean value applying to the property Scaled. Scaled data are specified in the units of
the vertical scale, such as volts. You get these by putting "True" instead of "False". If you want to
make a section of the output trace invisible, you simply set the data values to full scale or bigger,
top or bottom.
You can start with the unscaled data (False) as input, and then set the output data to scaled data
(True), and you can go from scaled to unscaled. Using scaled data, an overflow will make a picture
like this:
Summary of Contents for DDA-3000A
Page 1: ...LECROY X STREAM OSCILLOSCOPES O P E R AT O R S M A N U A L SEPTEMBER 2006 ...
Page 18: ...16 WM OM E Rev I BLANK PAGE ...
Page 64: ...62 WM OM E Rev I icon in Channels dialog zooms one trace zooms all displayed traces ...
Page 80: ...78 WM OM E Rev I 4 Select a language 5 Click Next when the Wizard appears ...
Page 81: ...X Stream Operator s Manual WM OM E Rev I 79 6 Select Complete setup ...
Page 157: ...X Stream Operator s Manual WM OM E Rev I 155 ...
Page 170: ...168 WM OM E Rev I 5 Read the status information in line StatusDescription ...
Page 214: ...212 WM OM E Rev I Delay Parameter Find Range selected ...
Page 263: ...X Stream Operator s Manual WM OM E Rev I 261 ...
Page 284: ...282 WM OM E Rev I ...
Page 285: ...X Stream Operator s Manual WM OM E Rev I 283 Using a Surface Plot Excel Example 5 ...
Page 324: ...322 WM OM E Rev I ...