Software Library API naibrd 1.62
See all documentation at naii.docs.com
D/A Module Functions

Topics

 Module Properties Functions
 
 Standard Operation Functions
 
 Configuration Functions
 
 Overload Operation Functions
 
 Built-in Test Functions
 
 Advanced Built-in Test Functions
 
 Synchronization Control Functions
 
 Interrupt Functions
 
 FIFO Operation Functions
 
 FIFO Interrupt Functions
 
 Conversion Functions
 
 Raw Register Access Functions
 
 Ram Control Functions
 
 Watchdog Timer Functions
 
 Module Power Reset Functions
 
 Miscellaneous Functions
 

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_DA_GetFIFOCount (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outcount)
 Retrieves the FIFO counter registers that indicate the number of data elements in the D/A channel's FIFO buffer. Each time a read operation is made to the D/A channel's FIFO Buffer, the corresponding FIFO counter register is decremented by one. The maximum number of items that can be stored in each D/A channel's FIFO is 26,213 (0x6665) for Gen3, DA1, DA3 and 1000000 DA2.
 

Detailed Description


Table of Supported Routines

Please refer to the "DA Module Functions Map" document located in

"..\ssk1\Documentation\naibrd_Module_Support"

for the APIs that are supported for the D/A module configuration in your system.

Function Documentation

◆ naibrd_DA_GetFIFOCount()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DA_GetFIFOCount ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t * outcount )

Retrieves the FIFO counter registers that indicate the number of data elements in the D/A channel's FIFO buffer. Each time a read operation is made to the D/A channel's FIFO Buffer, the corresponding FIFO counter register is decremented by one. The maximum number of items that can be stored in each D/A channel's FIFO is 26,213 (0x6665) for Gen3, DA1, DA3 and 1000000 DA2.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
outcount: (Output) Number of data elements in FIFO Buffer.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.