Chapter 2
NI 5450 Overview
NI PXIe-5450 User Manual
2-60
ni.com
Segment Components
You create a sequence segment by segment. Each segment is made up of
the four components shown in the following table.
Script Mode
Script mode allows you to use scripting to link and loop multiple
waveforms in complex combinations using a
script
. A script is a series of
instructions that indicates how waveforms saved in the onboard memory
should be sent to the DUT. The script can specify the order in which the
waveforms are generated, the number of times they are generated, and the
triggers and markers associated with the generation.
The following are the basic steps you should use to create your script.
1.
Call the niFgen Configure Output Mode VI or the
niFgen_ConfigureOutputMode
function to switch to Script mode.
Component
Description
Waveform Handle
Specifies the downloaded waveform to be accessed by the segment. A
waveform handle is returned for each waveform that is downloaded to
the onboard memory. Refer to the niFgen Create Waveform or niFgen
Allocate Waveform VIs, or the
niFgen_CreateArbWaveform
or
niFgen_AllocateWaveform
functions for more information about
downloading waveforms.
Sample Count
Specifies how many samples of a downloaded waveform the segment
uses. The sample count may not be the actual size of the downloaded
waveform. If the sample count is less than the actual size of the
downloaded waveform, only a part of that waveform is used for that
segment, starting with the first sample of the waveform. If the count is
more than the actual size of that waveform, NI-FGEN sends an error. If
the sample count is set to zero, NI-FGEN automatically uses the true
size of that waveform.
Waveform loops
Specifies the number of times that the waveform (or portion indicated by
sample count of the waveform) loops. The maximum number of loops is
16,777,215.
Marker offset
Specifies where the marker generates within that waveform. The offset
is referenced to the beginning of the waveform, with sample 0 being the
first sample of the waveform. For more information about markers, refer
to Markers.