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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outresistance)
 Retrieves the resistance measurement for the specified RTD channel. For Generation 5 modules (RT1), the raw data reading is a 32 bits formatted as IEEE 754 Single Precision Floating Point. For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllResistances (int32_t cardIndex, int32_t module, int32_t arraysize, float64_t p_outresistances[])
 Retrieves all the resistance measurement for the specified RTD module. For Generation 5 modules (RT1), the raw data reading is a 32 bits formatted as IEEE 754 Single Precision Floating Point.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetTemperature (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outtemperature)
 Retrieves the temperature measurement in Celsius for the specified RTD channel. This feature is available only on Generation 5 modules (RT1). For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetTemperatureEx (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_temperature_type_t tempType, float64_t *p_outtemperature)
 Retrieves the temperature measurement in either fahrenheit or celsius for the specified RTD channel. This feature is available only on Generation 5 modules (RT1). For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllTemperatures (int32_t cardIndex, int32_t module, int32_t arraysize, float64_t p_outtemperatures[])
 Retrieves all the temperature measurement for the specified RTD module. This feature is available only on Generation 5 modules (RT1).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllTemperaturesEx (int32_t cardIndex, int32_t module, naibrd_rtd_temperature_type_t tempType, int32_t arraysize, float64_t p_outtemperatures[])
 Retrieves all the temperature measurement in either fahrenheit or celsius for the specified RTD module. This feature is available only on Generation 5 modules (RT1).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_chan_mapped_status_type_t type, nai_status_bit_t *p_outstatusBit)
 Retrieves the status for the specified RTD channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_rtd_chan_mapped_status_type_t type)
 Clears the latched status for the specified channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_rtd_status_type_t type, uint32_t *p_outstatus)
 Retrieves the status for the specified RTD channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_rtd_status_type_t type)
 Clears the latched status for the specified channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.
 

Detailed Description

Function Documentation

◆ naibrd_RTD_ClearChanMappedStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ClearChanMappedStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rtd_chan_mapped_status_type_t type )

Clears the latched status for the specified channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.

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_rtd_chan_mapped_status_type_t 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_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_RTD_ClearStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ClearStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_rtd_status_type_t type )

Clears the latched status for the specified channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.

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_rtd_chan_mapped_status_type_t 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_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_RTD_GetAllResistances()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllResistances ( int32_t cardIndex,
int32_t module,
int32_t arraysize,
float64_t p_outresistances[] )

Retrieves all the resistance measurement for the specified RTD module. For Generation 5 modules (RT1), the raw data reading is a 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_outresistances array. If specified size is less than max channels, the resistances returned will be for channel 1 to size.
p_outresistances: (Output) Resistance reading in ohms 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_NOT_SUPPORTED when function is not supported.

◆ naibrd_RTD_GetAllTemperatures()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllTemperatures ( int32_t cardIndex,
int32_t module,
int32_t arraysize,
float64_t p_outtemperatures[] )

Retrieves all the temperature measurement for the specified RTD module. This feature is available only on Generation 5 modules (RT1).

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_outtemperatures array. If specified size is less than max channels, the temperatures returned will be for channel 1 to size.
p_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_NOT_SUPPORTED when function is not supported.

◆ naibrd_RTD_GetAllTemperaturesEx()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetAllTemperaturesEx ( int32_t cardIndex,
int32_t module,
naibrd_rtd_temperature_type_t tempType,
int32_t arraysize,
float64_t p_outtemperatures[] )

Retrieves all the temperature measurement in either fahrenheit or celsius for the specified RTD module. This feature is available only on Generation 5 modules (RT1).

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 naibrd_rtd_temperature_type_t definition.
arraysize: (Input) Size of the p_outtemperatures array. If specified size is less than max channels, the temperatures returned will be for channel 1 to size.
p_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_VALUE when invalid tempType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RTD_GetChanMappedStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetChanMappedStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rtd_chan_mapped_status_type_t type,
nai_status_bit_t * p_outstatusBit )

Retrieves the status for the specified RTD channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.

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_rtd_chan_mapped_status_type_t definition.
p_outstatusBit: (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_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RTD_GetResistance()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetResistance ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t * p_outresistance )

Retrieves the resistance measurement for the specified RTD channel. For Generation 5 modules (RT1), the raw data reading is a 32 bits formatted as IEEE 754 Single Precision Floating Point. For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.

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_outresistance: (Output) Resistance reading in ohms.
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_RTD_GetStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_rtd_status_type_t type,
uint32_t * p_outstatus )

Retrieves the status for the specified RTD channel and status type. Module Summary Status: Feature supported in FPGA Version >= X.X.

These functions are deprecated and replaced by API functions in naibrd_rtd.c

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_rtd_chan_mapped_status_type_t 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_INVALID_VALUE when invalid status type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RTD_GetTemperature()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetTemperature ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t * p_outtemperature )

Retrieves the temperature measurement in Celsius for the specified RTD channel. This feature is available only on Generation 5 modules (RT1). For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.

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_outtemperature: (Output) Temperature reading in celsius.
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_RTD_GetTemperatureEx()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_GetTemperatureEx ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_rtd_temperature_type_t tempType,
float64_t * p_outtemperature )

Retrieves the temperature measurement in either fahrenheit or celsius for the specified RTD channel. This feature is available only on Generation 5 modules (RT1). For Generation 5 modules (TC1) only applies to channel 8 and only in CJC mode. It returns a invalid reading if not in CJC and channel 8.

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]).
tempType: (Input) Temperature Type: refer to naibrd_rtd_temperature_type_t definition.
p_outtemperature: (Output) Temperature reading in celsius.
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_INVALID_VALUE when invalid tempType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.