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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_FG_Measure (int32_t cardIndex, int32_t module, int32_t channel, naibrd_fg_measure_t measure_select, float64_t *out_value)
 Measures the specified parameter for a function generator channel.
 

Detailed Description

Function Documentation

◆ naibrd_FG_Measure()

NAIBRDFUNC nai_status_t NAIAPI naibrd_FG_Measure ( int32_t cardIndex,
int32_t module,
int32_t channel,
naibrd_fg_measure_t measure_select,
float64_t * out_value )

Measures the specified parameter for a function generator channel.

Parameters
cardIndex: (Input) Logical Card Index assigned to the 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]).
measuer_select: (Input) Measurement selection (frequency, amplitude, or DC offset).
out_value: (Output) Pointer to a variable that will hold the returned measurement value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when an invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when an invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when the handle to the board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when an invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when the function is not supported.