Software Library API naibrd 2.24.0
See all documentation at naii.docs.com

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_DA_SetTestEnable (int32_t cardIndex, int32_t module, naibrd_da_test_type_t type, bool_t enable)
 

Detailed Description

Function Documentation

◆ naibrd_DA_SetTestEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DA_SetTestEnable ( int32_t cardIndex,
int32_t module,
naibrd_da_test_type_t type,
bool_t enable )
Warning
This function has been deprecated and has been replaced by naibrd_DA_SetModuleBITEnable().

Sets the D/A D2 or D3 BIT Test Enable state for the specified D/A module.

The D2 Test initiates automatic background BIT testing. Each channel is checked to a test accuracy of 0.2% Full
Scale and monitored for shorted output. Any failure triggers and interrupt (if enabled) and the results are
available in BIT Status register. The testing is totally transparent to the user, requires no external programming,
has no effect on the standard operation of the board, and can be enabled or disabled.

The D3 Test initiates a BIT test that uses an internal D/A to measure all D/A channels while they remain connected
to the I/O. Each channel will be checked to a test accuracy of 0.2% Full Scale.The results are available in
BIT Status register. The testing requires no external reference, no external programming and can be initiated or stopped.
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]).
type: (Input) Test Type: refer to nai_da_test_type_t definition.
enable: (Input) 0 to disable, 1 to enable test.
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_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.