Chapter 4
Programming
©
National Instruments Corporation
4-19
NI PXIe-5450 User Manual
4.
(Optional) You can write multiple scripts that exist simultaneously on
your device. If you write multiple scripts to your device, you must
select the one you wish to execute by setting the
NIFGEN_ATTR_SCRIPT_TO_GENERATE
attribute.
Initiate Generation
The Initiate Generation step transitions the device from the Committed
state to the Generation state. Once this transition has been made, the device
is able to begin generating waveforms.
LabVIEW Example
Call the niFgen Initiate Generation VI to transition the device to the
Generation state.
C Example
Call the
niFgen_InitiateGeneration
function to transition the device
to the Generation state.
Abort Generation
The abort generation step aborts any signal generation that was initiated in
the initiate generation step. When you abort generation, you can choose to
either abort to ground or abort to a known voltage (not available in Standard
Function or Frequency List output modes).
Abort to Ground
All operation modes can abort to ground. To abort to ground you must
disable the output enable relay to remove the DC voltage from the output.
LabVIEW Example
To abort generation to ground, complete the following steps:
1.
Call the niFgen Output Enable VI to with
Output Enable
set to
FALSE to disable the analog output and remove any DC voltage on the
analog output.
2.
Call the niFgen Abort Generation VI to stop the waveform generation.