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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToPosition (uint32_t modId, uint32_t rawData, float64_t *p_outposition)
 Converts raw position data to a position value in % scaled between -100.0% and 100.0%.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToPositionRaw (uint32_t modId, float64_t position, uint32_t *p_outrawData)
 Converts scaled position value to raw position data.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVelocity (uint32_t modId, uint32_t rawData, float64_t *p_outvelocity)
 Converts raw velocity data to a scaled velocity value in %/second.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToFrequency (uint32_t modId, uint32_t rawData, float64_t *p_outfreq)
 Converts raw frequency data to a frequency value represented as a 64 bit float.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVoltage (uint32_t modId, uint32_t rawData, float64_t *p_outvoltage)
 Converts raw voltage data to a voltage value represented as a 64 bit float.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVoltageRaw (uint32_t modId, float64_t voltage, uint32_t *p_outrawData)
 Converts scaled voltage value to raw voltage data.
 

Detailed Description

Function Documentation

◆ naibrd_LVDT_ConvertToFrequency()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToFrequency ( uint32_t modId,
uint32_t rawData,
float64_t * p_outfreq )

Converts raw frequency data to a frequency value represented as a 64 bit float.

Parameters
modId: (Input) LVDT Module ID
rawData: (Input) Raw frequency value.
p_outfreq: (Output) Frequency value
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_ConvertToPosition()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToPosition ( uint32_t modId,
uint32_t rawData,
float64_t * p_outposition )

Converts raw position data to a position value in % scaled between -100.0% and 100.0%.

Parameters
modId: (Input) LVDT Module ID.
rawData: (Input) Raw position value.
p_outposition: (Output) Scaled Position value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_ConvertToPositionRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToPositionRaw ( uint32_t modId,
float64_t position,
uint32_t * p_outrawData )

Converts scaled position value to raw position data.

Parameters
modId: (Input) LVDT Module ID.
position: (Input)Scaled Position value.
p_outrawData: (Output) Raw position value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_VALUE when invalid position is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_ConvertToVelocity()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVelocity ( uint32_t modId,
uint32_t rawData,
float64_t * p_outvelocity )

Converts raw velocity data to a scaled velocity value in %/second.

Parameters
modId: (Input) LVDT Module ID.
rawData: (Input) Raw velocity value.
p_outvelocity: (Output) Scaled Velocity value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_ConvertToVoltage()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVoltage ( uint32_t modId,
uint32_t rawData,
float64_t * p_outvoltage )

Converts raw voltage data to a voltage value represented as a 64 bit float.

Parameters
modId: (Input) LVDT Module ID
rawData: (Input) Raw Voltage value.
p_outvoltage: (Output) Voltage value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_ConvertToVoltageRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVoltageRaw ( uint32_t modId,
float64_t voltage,
uint32_t * p_outrawData )

Converts scaled voltage value to raw voltage data.

Parameters
modId: (Input) LVDT Module ID.
voltage: (Input)Scaled Voltage value.
p_outrawData: (Output) Raw voltage value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.