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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetMeasurement (int32_t cardIndex, int32_t module, int32_t channel, naibrd_vr_measured_value_type_t measValueType, float64_t *p_outMeasurement)
 Retrieves a measurement from the specified VR channel, based on the measured value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.
 

Detailed Description

Function Documentation

◆ naibrd_VR_GetMeasurement()

NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetMeasurement ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_vr_measured_value_type_t measValueType,
float64_t * p_outMeasurement )

Retrieves a measurement from the specified VR channel, based on the measured value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.

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]).
measValueType: (Input) Measured value type: refer to naibrd_vr_measured_value_type_t definition.
p_outMeasurement: (Output) Measured value read from module.
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 measValueType parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.