Chapter 4
Programming
©
National Instruments Corporation
4-21
NI PXIe-5450 User Manual
2.
Abort generation of the current waveform by calling the
niFgen_AbortGeneration
function.
3.
Reconfigure the device to generate the constant–amplitude waveform.
4.
Call the
niFgen_InitiateGeneration
function to transition the
device to the Generation state.
5.
Call the
niFgen_AbortGeneration
function to stop generation of
the constant-amplitude waveform.
Closing the Session
The closing step closes the session and deallocates any resources the
session used. Closing the session is important because it releases any
temporary buffers that were created to transfer data between the digitizer
and the host memory.
LabVIEW Example
Call the niFgen Close VI to close the session.
C Example
Call the
niFgen_Close
function to close the session.
NI-FGEN Error Codes
When the NI-FGEN driver encounters an error, it returns an error code.
This code value can be in hexadecimal, decimal, or text depending on your
application. To understand the error code, you need to read the error
description.
For example, the error “-1074135039” or “(0xBFFA0001 - Instrument
Specific error)” encompasses many different error cases. To better
understand the error specific to your application, you need to read the error
description.