Software Library API naibrd 1.62
See all documentation at naii.docs.com
Standard Operation Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetPosition (int32_t cardIndex, int32_t module, int32_t channel, nai_dl_subchannel_t subchannel, float64_t position)
 Sets position on a DLV module for a specified subchannel and channel. Use nai_dl_subchannel_t to select the specified subchannel to be written to the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetPosition (int32_t cardIndex, int32_t module, int32_t channel, nai_dl_subchannel_t subchannel, float64_t *outPosition)
 Gets position on a DLV module from a specified subchannel and channel. Use nai_dl_subchannel_t to select the specified subchannel to be read from the DLV module.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetMeasuredValue (int32_t cardIndex, int32_t module, int32_t channel, nai_dl_measured_value_type_t opMode, float64_t *opValue)
 Gets a measured value for the specified DLV channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_dl_status_type_t statusType, nai_dl_module_status_t *outStatus)
 Retrieves the module status for a specific channel from the DLV module (retrieves the latched status for Gen 5 modules).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_dl_status_type_t statusType)
 Clears the module status for a specific channel from the DLV module (clears the latched status for Gen 5 modules).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetStatusRealtime (int32_t cardIndex, int32_t module, int32_t channel, nai_dl_status_type_t statusType, nai_dl_module_status_t *outStatus)
 Retrieves the module realtime status for a specific channel from the DLV module (used for Gen5 modules only).
 

Detailed Description


Function Documentation

◆ naibrd_DL_ClearStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_ClearStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dl_status_type_t statusType )

Clears the module status for a specific channel from the DLV module (clears the latched status for Gen 5 modules).

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]).
statusType: (Input) Refer to nai_dl_status_type_t definitions.
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_RANGE when invalid statusType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DL_GetMeasuredValue()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetMeasuredValue ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dl_measured_value_type_t opMode,
float64_t * opValue )

Gets a measured value for the specified DLV 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]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
opMode: (Input) refer to nai_dl_measured_value_type_t definitions.
opValue: (Output) float64_t: Returns a measured value from a specified channel of DLV module.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card 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_RANGE when invalid range parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DL_GetPosition()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetPosition ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dl_subchannel_t subchannel,
float64_t * outPosition )

Gets position on a DLV module from a specified subchannel and channel. Use nai_dl_subchannel_t to select the specified subchannel to be read from the DLV 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]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
subchannel: (Input) Subchannel: refer to nai_dl_subchannel_t definitions.
outPosition: (Output) float64_t: Returns position from a specified channel of DLV module.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card 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_RANGE when invalid range parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DL_GetStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dl_status_type_t statusType,
nai_dl_module_status_t * outStatus )

Retrieves the module status for a specific channel from the DLV module (retrieves the latched status for Gen 5 modules).

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]).
statusType: (Input) Refer to nai_dl_status_type_t definitions.
outStatus: (Output) nai_dl_module_status_t: Return module status (0=good, 1=bad).
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_RANGE when invalid statusType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DL_GetStatusRealtime()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_GetStatusRealtime ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dl_status_type_t statusType,
nai_dl_module_status_t * outStatus )

Retrieves the module realtime status for a specific channel from the DLV module (used for Gen5 modules only).

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]).
statusType: (Input) Refer to nai_dl_status_type_t definitions.
outStatus: (Output) nai_dl_module_status_t: Return module status (0=good, 1=bad).
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_RANGE when invalid statusType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DL_SetPosition()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DL_SetPosition ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_dl_subchannel_t subchannel,
float64_t position )

Sets position on a DLV module for a specified subchannel and channel. Use nai_dl_subchannel_t to select the specified subchannel to be written to the DLV 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]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
subchannel: (Input) Subchannel: refer to Use nai_dl_subchannel_t definitions.
position: (Input) float64_t: Value used to set position for a specified channel of DLV module.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card 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_RANGE when invalid range parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.