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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outVoltage)
 Retrieves the voltage measurement for the specified TC channel. The raw data reading is 32 bits formatted as IEEE 754 Single Precision Floating Point.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetAllVoltages (int32_t cardIndex, int32_t module, int32_t arraysize, float64_t outVoltages[])
 Retrieves all the voltage measurements for the specified TC module. The raw data reading is 32 bits formatted as IEEE 754 Single Precision Floating Point.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetTemperature (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_temperature_type_t tempType, float64_t *p_outTemperature)
 Retrieves the temperature measurement in either fahrenheit or celsius for the specified TC channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetAllTemperatures (int32_t cardIndex, int32_t module, naibrd_tc_temperature_type_t tempType, int32_t arraysize, float64_t outTemperatures[])
 Retrieves all the temperature measurement in either fahrenheit or celsius for the specified TC module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type, nai_status_bit_t *p_outStatus)
 Retrieves the status for the specified TC channel and status type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_tc_chan_mapped_status_type_t type)
 Clears the latched status for the specified channel and status type.
 

Detailed Description

Function Documentation

◆ naibrd_TC_ClearChanMappedStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_ClearChanMappedStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_tc_chan_mapped_status_type_t type )

Clears the latched status for the specified channel and status type.

Note: The background BIT test runs at intervals of up to 2 minutes, and the BIT Status is only updated at these intervals.

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]).
type: (Input) Status Type: refer to naibrd_tc_channel_mapped_status_type definition.
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_INVALID_VALUE when invalid status type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TC_GetAllTemperatures()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetAllTemperatures ( int32_t cardIndex,
int32_t module,
naibrd_tc_temperature_type_t tempType,
int32_t arraysize,
float64_t outTemperatures[] )

Retrieves all the temperature measurement in either fahrenheit or celsius for the specified TC module.

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]).
tempType: (Input) Temperature Type: refer to nai_rts_temperature_type_t definition.
arraysize: (Input) Size of the p_outvoltage array. If specified size is less than max channels, the voltages returned will be for channel 1 to size.
outTemperatures: (Output) Temperature reading in celsius for all channels.
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TC_GetAllVoltages()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetAllVoltages ( int32_t cardIndex,
int32_t module,
int32_t arraysize,
float64_t outVoltages[] )

Retrieves all the voltage measurements for the specified TC module. The raw data reading is 32 bits formatted as IEEE 754 Single Precision Floating Point.

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]).
arraysize: (Input) Size of the p_outVoltage array. If specified size is less than max channels, the voltages returned will be for channel 1 to size.
outVoltages: (Output) Voltage reading in volts for all channels.
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TC_GetChanMappedStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetChanMappedStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_tc_chan_mapped_status_type_t type,
nai_status_bit_t * p_outStatus )

Retrieves the status for the specified TC channel and status type.

Note: The background BIT test runs at intervals of up to 2 minutes, and the BIT Status is only updated at these intervals.

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]).
type: (Input) Status Type: refer to naibrd_tc_channel_mapped_status_type definition
p_outStatus: (Output) A pointer to where the status is returned.
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TC_GetTemperature()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetTemperature ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_tc_temperature_type_t tempType,
float64_t * p_outTemperature )

Retrieves the temperature measurement in either fahrenheit or celsius for the specified TC channel.

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]).
tempType: (Input) Temperature Type: refer to nai_rts_temperature_type_t definition.
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
p_outTemperature: (Output) Temperature reading in celsius or fahrenheit.
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TC_GetVoltage()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TC_GetVoltage ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t * p_outVoltage )

Retrieves the voltage measurement for the specified TC channel. The raw data reading is 32 bits formatted as IEEE 754 Single Precision Floating Point.

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]).
p_outVoltage: (Output) Voltage reading in volts.
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_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.