Chapter 4
Programming
NI PXIe-5450 User Manual
4-20
ni.com
C Example
1.
Call the
niFgen_ConfigureOutputEnabled
function with the
enabled
parameter set to VI_FALSE to disable the analog output and
to remove any DC voltage on the analog output.
2.
Call the
niFgen_AbortGeneration
function to stop the waveform
generation.
Abort to a Known Voltage
Arbitrary Waveform, Arbitrary Sequence, and Script output modes can
abort generation to a known voltage. When waveform generation is
aborted, the analog output signal remains at the voltage corresponding to
the last waveform generated until the device is reconfigured for another
generation.
Note
Closing the NI-FGEN session to the device while generating a waveform stops the
waveform generation. Stopping waveform generation at an unknown point leaves an
unknown DC voltage, corresponding to the sample value when generation stopped on the
CH 0 analog output connector. To ensure the output voltage goes to zero volts when closing
your applications, always disable the output enable relay first and then abort the generation.
LabVIEW Example
To abort the generation to known voltage, complete the following steps:
1.
During your application, download a small, constant–amplitude
waveform that corresponds to the desired output voltage. You will
generate this waveform at the end of your application.
2.
Abort generation of the current waveform by calling the niFgen Abort
Generation VI.
3.
Reconfigure the device to generate the constant–amplitude waveform.
4.
Call the niFgen Initiate Generation VI to transition the device to the
Generation state.
5.
Call the niFgen Abort Generation VI to stop generation of the
constant-amplitude waveform.
C Example
To abort the generation to known voltage, complete the following steps:
1.
During your application, download a small, constant–amplitude
waveform that corresponds to the desired output voltage. You will
generate this waveform at the end of your application.