![]() |
Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_SetSwitchState (int32_t cardIndex, int32_t module, int32_t channel, nai_dsw_switch_state_t switchstate) |
| Sets the switch closure state for the specified Discrete Switch channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetSwitchState (int32_t cardIndex, int32_t module, int32_t channel, nai_dsw_switch_state_t *outswitchstate) |
| Retrieves the Output State for the specified Discrete Switch channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetInputState (int32_t cardIndex, int32_t module, int32_t channel, nai_dsw_state_t *outstate) |
| Retrieves the Input State for the specified Discrete Switch channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outvoltage) |
| Retrieves the voltage measurement for the specified Discrete Switch channel. releases. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetCurrent (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outcurrent) |
| Retrieves the current measurement for the specified Discrete Switch channel. releases. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetOverCurrent (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outovercurrent) |
| Retrieves the current measurement for the specified Discrete Switch channel. releases. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_SetOverCurrent (int32_t cardIndex, int32_t module, int32_t channel, float64_t overcurrent) |
| Retrieves the current measurement for the specified Discrete Switch channel. releases. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetAvgVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outvoltage) |
| Retrieves the RMS voltage measurement for the specified Discrete Switch channel. Reading will be positive for both pos and neg polarity. releases. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetAvgCurrent (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outcurrent) |
| Retrieves the average current measurement for the specified Discrete Switch channel. releases. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_dsw_status_type_t type, nai_status_bit_t *outstatusBit) |
| Retrieves the status for the specified Discrete Switch channel and status type. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_DSW_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_dsw_status_type_t type) |
| Clears the latched status for the specified channel and status type. | |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_ClearStatus | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| nai_dsw_status_type_t | type ) |
Clears the latched status for the specified channel and status type.
| 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]). |
| type | : (Input) Status Type: refer to nai_dsw_status_type_t definition. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetAvgCurrent | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t * | outcurrent ) |
Retrieves the average current measurement for the specified Discrete Switch channel. releases.
| 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]). |
| outcurrent | : (Output) Current reading in amps. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetAvgVoltage | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t * | outvoltage ) |
Retrieves the RMS voltage measurement for the specified Discrete Switch channel. Reading will be positive for both pos and neg polarity. releases.
| 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]). |
| outvoltage | : (Output) RMS Voltage reading in volts. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetCurrent | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t * | outcurrent ) |
Retrieves the current measurement for the specified Discrete Switch channel. releases.
| 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]). |
| outcurrent | : (Output) Current reading in amps. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetInputState | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| nai_dsw_state_t * | outstate ) |
Retrieves the Input State for the specified Discrete Switch channel.
| 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]). |
| outstate | : (Output) NAI_DSW_STATE_LO or NAI_DSW_STATE_HI. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetOverCurrent | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t * | outovercurrent ) |
Retrieves the current measurement for the specified Discrete Switch channel. releases.
| 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]). |
| outovercurrent | : (Output) Current reading in amps. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetStatus | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| nai_dsw_status_type_t | type, | ||
| nai_status_bit_t * | outstatusBit ) |
Retrieves the status for the specified Discrete Switch channel and status type.
| 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]). |
| type | : (Input) Status Type: refer to nai_dsw_status_type_t definition. |
| outstatusBit | : (Output) 0 for Normal, 1 Failure Detected. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetSwitchState | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| nai_dsw_switch_state_t * | outswitchstate ) |
Retrieves the Output State for the specified Discrete Switch channel.
| 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]). |
| outswitchstate | : (Output) NAI_DSW_STATE_LO or NAI_DSW_STATE_HI. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_GetVoltage | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t * | outvoltage ) |
Retrieves the voltage measurement for the specified Discrete Switch channel. releases.
| 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]). |
| outvoltage | : (Output) Voltage reading in volts. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_SetOverCurrent | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t | overcurrent ) |
Retrieves the current measurement for the specified Discrete Switch channel. releases.
| 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]). |
| overcurrent | : (Output) Current reading in amps. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_DSW_SetSwitchState | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| nai_dsw_switch_state_t | switchstate ) |
Sets the switch closure state for the specified Discrete Switch channel.
| 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]). |
| switchstate | : (Input) NAI_DSW_STATE_LO or NAI_DSW_STATE_HI. |