|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_SetActiveChannel (int32_t cardIndex, int32_t module, int32_t channel, bool_t active) |
| Sets the bit corresponding to the specified channel in the Active Channel Register. Setting the active channel bit to "inactive" for unused channels will prevent false alarms (BIT or Open, for example) from being generated for unused channels. The A/D multiplexes active channels. There are two separate banks of multiplexed channels; channels 1-8 are in the first bank and channels 9-16 are in the second bank. Note: Banks must have the same number of channels active- if bank 1 has two channels active, then bank 2 must also have two channels active.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_GetActiveChannel (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outactive) |
| Retrieves the bit corresponding to the specified channel in the Active Channel Register. The A/D multiplexes active channels. There are two separate banks of multiplexed channels; channels 1-8 are in the first bank and channels 9-16 are in the second bank. Note: Banks must have the same number of channels active- if bank 1 has two channels active, then bank 2 must also have two channels active.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_SetD0TestParams (int32_t cardIndex, int32_t module, naibrd_ad_polarity_t polarity, float64_t range, float64_t testLevel) |
| Sets the D0 Test Range and D0 Test Voltage for A/D module under test.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_GetD0TestParams (int32_t cardIndex, int32_t module, naibrd_ad_polarity_t *p_outpolarity, float64_t *p_outrange, float64_t *p_outtestLevel) |
| Retrieves the D0 Test Range and D0 Test Voltage for A/D module under test.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_SetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_ad_test_type_t type, bool_t bitEnable) |
| Enables/Disables the BIT test specified by the type parameter. BITs are described as follows:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_GetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_ad_test_type_t type, bool_t *p_outbitEnable) |
| Retrieves the state (Enabled or disabled) of the BIT test specified by the type parameter. BITs are described as follows:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_AD_CheckPowerOnBITComplete (int32_t cardIndex, int32_t module, bool_t *p_outpbitComplete) |
| Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified module. The PBIT result will be in the BIT status register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_CD_GetModuleBITEnable (int32_t cardIndex, int32_t module, naibrd_cd_test_type_t type, bool_t *p_outbitEnable) |
| Retrieves the state (Enabled or disabled) of the BIT test specified by the type parameter.
|
|
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetModuleBITEnable |
( |
int32_t | cardIndex, |
|
|
int32_t | module, |
|
|
naibrd_ad_test_type_t | type, |
|
|
bool_t * | p_outbitEnable ) |
Retrieves the state (Enabled or disabled) of the BIT test specified by the type parameter. BITs are described as follows:
UBIT (D0) - An off-line test that is used to check the card and interface. This will disconnect all channels from the I/O and to connect them across an internal stimulus. Test parameters are controlled by the user and are entered in the D0 Test Level and D0 Test Polarity registers. The outputs from the channels are monitored internally for proper conversion. External stimulus is not required.
IBIT (D3) - An off-line test that starts an initiated BIT test that disconnects all channels from the I/O and then connects them across an internal stimulus. Each channel will be checked to a pre-determined test accuracy. Test cycle is completed when D3 changes from 1 to 0. Results can be read from the Status registers. The test can be enabled or disabled at any time.
- 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) The BIT type to check. |
p_outbitEnable | : (Output) BIT Enabled (0 = disabled, 1 = enabled). |
- 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.
- NAI_ERROR_NOT_SUPPORTED when function is not supported.
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetModuleBITEnable |
( |
int32_t | cardIndex, |
|
|
int32_t | module, |
|
|
naibrd_ad_test_type_t | type, |
|
|
bool_t | bitEnable ) |
Enables/Disables the BIT test specified by the type parameter. BITs are described as follows:
UBIT (D0) - An off-line test that is used to check the card and interface. This will disconnect all channels from the I/O and to connect them across an internal stimulus. Test parameters are controlled by the user and are entered in the D0 Test Level and D0 Test Polarity registers. The outputs from the channels are monitored internally for proper conversion. External stimulus is not required.
IBIT (D3) - An off-line test that starts an initiated BIT test that disconnects all channels from the I/O and then connects them across an internal stimulus. Each channel will be checked to a pre-determined test accuracy. Test cycle is completed when D3 changes from 1 to 0. Results can be read from the Status registers. The test can be enabled or disabled at any time.
- 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) The BIT type to enable/disable. |
bitEnable | : (Input) BIT Enable (0 = disable, 1 = enable). |
- 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.
- NAI_ERROR_NOT_SUPPORTED when the function is not supported.