NI 5402/5406/5412/5421/5422/5441/5442
Aborting Generation
You can abort the generation of the current waveform. Aborting the generation exhibits different behaviors for different waveform generation modes. Refer to Features Supported to determine the output modes supported by your device.
Output Mode | Abort Behavior |
---|---|
Standard Function, Frequency List | Signal remains at the level for which the DC offset is configured.* |
Arbitrary Waveform, Arbitrary Sequence, Script | Signal remains at the last sample voltage level prior to the abort. |
*Note For the NI 5402/5406, square waveform signals drop to low when aborted. |
Aborting to Ground
All operation modes can abort to ground. The niFgen Output Enable VI or the niFgen_ConfigureOutputEnabled function allows you to disable the output enable relay to remove the DC voltage from the output.
To abort generation to ground, complete the following steps:
- Disable the analog output by calling the niFgen Output Enable VI or the niFgen_ConfigureOutputEnabled function to remove any DC voltage on the analog output.
- Call the niFgen Abort Generation VI or the niFgen_AbortGeneration function to stop the waveform generation.
Aborting to a Known Voltage
Arbitrary Waveform, Arbitrary Sequence, and Script output modes can abort generation to a known voltage.
To abort the generation to known voltage, complete the following steps:
- 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.
- Abort generation of the current waveform.
- Reconfigure the device to generate the constant–amplitude waveform. Initiate generation.
- Abort the generation of the constant–amplitude waveform.
The analog output signal remains at the voltage corresponding to this waveform 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. |