Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
naibrd_ad_legacy.c File Reference

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetLatch (int32_t cardIndex, int32_t module, bool_t latched)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetLatch (int32_t cardIndex, int32_t module, bool_t *p_outlatched)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_status_type_t type)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_status_type_t type, nai_status_bit_t *p_outstatusBit)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetRange (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_range_mode_t mode, float64_t range)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetRange (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_range_mode_t *p_outmode, float64_t *p_outrange)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetBreakFrequency (int32_t cardIndex, int32_t module, int32_t channel, uint32_t freq)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetBreakFrequency (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outfreq)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetFloatingPointOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t offset)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetFloatingPointOffset (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outoffset)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetFloatingPointScaleFactor (int32_t cardIndex, int32_t module, int32_t channel, float64_t scaleFactor)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetFloatingPointScaleFactor (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outscaleFactor)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetChannelState (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_state_t state)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetChannelState (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_state_t *p_outstate)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConfigureD0Test (int32_t cardIndex, int32_t module, nai_ad_range_mode_t mode, float64_t range, float64_t testLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetD0TestSettings (int32_t cardIndex, int32_t module, nai_ad_range_mode_t *p_outmode, float64_t *p_outrange, float64_t *p_outtestLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_status_type_t type, bool_t enable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_status_type_t type, bool_t *p_outenable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptVector (int32_t cardIndex, int32_t module, nai_ad_status_type_t type, uint32_t vector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptVector (int32_t cardIndex, int32_t module, nai_ad_status_type_t type, uint32_t *p_outvector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_status_type_t type, naibrd_int_trigger_type_t triggerMode)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_ad_status_type_t type, naibrd_int_trigger_type_t *p_outtriggerMode)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptSteering (int32_t cardIndex, int32_t module, nai_ad_status_type_t type, naibrd_int_steering_t steering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptSteering (int32_t cardIndex, int32_t module, nai_ad_status_type_t type, naibrd_int_steering_t *p_outsteering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRange (uint32_t modId, nai_ad_range_t rawData, nai_ad_range_mode_t *p_outmode, float64_t *p_outrange)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRangeRaw (uint32_t modId, nai_ad_range_mode_t mode, float64_t range, nai_ad_range_t *p_outrawdata)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltage (uint32_t modId, nai_ad_range_t range, uint32_t rawData, float64_t *p_outvoltage)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageD0 (uint32_t modId, nai_ad_range_t range, uint32_t rawData, float64_t *p_outvoltage)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRaw (uint32_t modId, nai_ad_range_t range, float64_t voltage, uint32_t *p_outrawData)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRawD0 (uint32_t modId, nai_ad_range_t range, float64_t voltage, uint32_t *p_outrawData)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrentRange (uint32_t modId, nai_ad_range_t rawData, nai_ad_range_mode_t *p_outmode, float64_t *p_outrange)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrentRangeRaw (uint32_t modId, nai_ad_range_mode_t mode, float64_t range, nai_ad_range_t *p_outrawData)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrent (uint32_t modId, nai_ad_range_t range, uint32_t rawData, float64_t *p_outcurrent)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrentRaw (uint32_t modId, nai_ad_range_t range, float64_t current, uint32_t *p_outrawData)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetStatusRaw (int32_t cardIndex, int32_t module, nai_ad_status_type_t type, uint32_t *p_outrawdata)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ClearStatusRaw (int32_t cardIndex, int32_t module, nai_ad_status_type_t type, uint32_t rawdata)
 

Function Documentation

◆ naibrd_AD_ClearStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ClearStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_status_type_t type )

◆ naibrd_AD_ClearStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ClearStatusRaw ( int32_t cardIndex,
int32_t module,
nai_ad_status_type_t type,
uint32_t rawdata )

◆ naibrd_AD_ConfigureD0Test()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConfigureD0Test ( int32_t cardIndex,
int32_t module,
nai_ad_range_mode_t mode,
float64_t range,
float64_t testLevel )

◆ naibrd_AD_ConvertToCurrent()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrent ( uint32_t modId,
nai_ad_range_t range,
uint32_t rawData,
float64_t * p_outcurrent )

◆ naibrd_AD_ConvertToCurrentRange()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrentRange ( uint32_t modId,
nai_ad_range_t rawData,
nai_ad_range_mode_t * p_outmode,
float64_t * p_outrange )

◆ naibrd_AD_ConvertToCurrentRangeRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrentRangeRaw ( uint32_t modId,
nai_ad_range_mode_t mode,
float64_t range,
nai_ad_range_t * p_outrawData )

◆ naibrd_AD_ConvertToCurrentRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToCurrentRaw ( uint32_t modId,
nai_ad_range_t range,
float64_t current,
uint32_t * p_outrawData )

◆ naibrd_AD_ConvertToVoltage()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltage ( uint32_t modId,
nai_ad_range_t range,
uint32_t rawData,
float64_t * p_outvoltage )

◆ naibrd_AD_ConvertToVoltageD0()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageD0 ( uint32_t modId,
nai_ad_range_t range,
uint32_t rawData,
float64_t * p_outvoltage )

◆ naibrd_AD_ConvertToVoltageRange()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRange ( uint32_t modId,
nai_ad_range_t rawData,
nai_ad_range_mode_t * p_outmode,
float64_t * p_outrange )

◆ naibrd_AD_ConvertToVoltageRangeRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRangeRaw ( uint32_t modId,
nai_ad_range_mode_t mode,
float64_t range,
nai_ad_range_t * p_outrawdata )

◆ naibrd_AD_ConvertToVoltageRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRaw ( uint32_t modId,
nai_ad_range_t range,
float64_t voltage,
uint32_t * p_outrawData )

◆ naibrd_AD_ConvertToVoltageRawD0()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_ConvertToVoltageRawD0 ( uint32_t modId,
nai_ad_range_t range,
float64_t voltage,
uint32_t * p_outrawData )

◆ naibrd_AD_GetBreakFrequency()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetBreakFrequency ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t * p_outfreq )

◆ naibrd_AD_GetChannelState()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetChannelState ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_state_t * p_outstate )

◆ naibrd_AD_GetD0TestSettings()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetD0TestSettings ( int32_t cardIndex,
int32_t module,
nai_ad_range_mode_t * p_outmode,
float64_t * p_outrange,
float64_t * p_outtestLevel )

◆ naibrd_AD_GetFloatingPointOffset()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetFloatingPointOffset ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t * p_outoffset )

◆ naibrd_AD_GetFloatingPointScaleFactor()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetFloatingPointScaleFactor ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t * p_outscaleFactor )

◆ naibrd_AD_GetInterruptEdgeLevel()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptEdgeLevel ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_status_type_t type,
naibrd_int_trigger_type_t * p_outtriggerMode )

◆ naibrd_AD_GetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_status_type_t type,
bool_t * p_outenable )

◆ naibrd_AD_GetInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptSteering ( int32_t cardIndex,
int32_t module,
nai_ad_status_type_t type,
naibrd_int_steering_t * p_outsteering )

◆ naibrd_AD_GetInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetInterruptVector ( int32_t cardIndex,
int32_t module,
nai_ad_status_type_t type,
uint32_t * p_outvector )

◆ naibrd_AD_GetLatch()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetLatch ( int32_t cardIndex,
int32_t module,
bool_t * p_outlatched )

◆ naibrd_AD_GetRange()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetRange ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_range_mode_t * p_outmode,
float64_t * p_outrange )

◆ naibrd_AD_GetStatus()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_status_type_t type,
nai_status_bit_t * p_outstatusBit )

◆ naibrd_AD_GetStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_GetStatusRaw ( int32_t cardIndex,
int32_t module,
nai_ad_status_type_t type,
uint32_t * p_outrawdata )

◆ naibrd_AD_SetBreakFrequency()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetBreakFrequency ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint32_t freq )

◆ naibrd_AD_SetChannelState()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetChannelState ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_state_t state )

◆ naibrd_AD_SetFloatingPointOffset()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetFloatingPointOffset ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t offset )

◆ naibrd_AD_SetFloatingPointScaleFactor()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetFloatingPointScaleFactor ( int32_t cardIndex,
int32_t module,
int32_t channel,
float64_t scaleFactor )

◆ naibrd_AD_SetInterruptEdgeLevel()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptEdgeLevel ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_status_type_t type,
naibrd_int_trigger_type_t triggerMode )

◆ naibrd_AD_SetInterruptEnable()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptEnable ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_status_type_t type,
bool_t enable )

◆ naibrd_AD_SetInterruptSteering()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptSteering ( int32_t cardIndex,
int32_t module,
nai_ad_status_type_t type,
naibrd_int_steering_t steering )

◆ naibrd_AD_SetInterruptVector()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetInterruptVector ( int32_t cardIndex,
int32_t module,
nai_ad_status_type_t type,
uint32_t vector )

◆ naibrd_AD_SetLatch()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetLatch ( int32_t cardIndex,
int32_t module,
bool_t latched )

◆ naibrd_AD_SetRange()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AD_SetRange ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ad_range_mode_t mode,
float64_t range )