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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToPosition (uint32_t modid, uint32_t rawdata, float64_t *outposition)
 Converts raw position data to an position value in scaled between -50.0 and 50.0.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToPositionRaw (uint32_t modid, float64_t position, uint32_t *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 *outvelocity)
 Converts raw velocity data to an position value in scaled between -50.0 and 50.0.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVelocityRaw (uint32_t modid, float64_t velocity, uint32_t *outrawdata)
 Converts scaled velocity value to raw velocity data.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToFrequency (uint32_t modid, uint32_t rawdata, float64_t *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 *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 * 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.
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 * outposition )

Converts raw position data to an position value in scaled between -50.0 and 50.0.

Parameters
modid: (Input) LVDT Module ID.
rawdata: (Input) Raw position value.
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 * outrawdata )

Converts scaled position value to raw position data.

Parameters
modid: (Input) LVDT Module ID
position: (Input)Scaled Position value
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 * outvelocity )

Converts raw velocity data to an position value in scaled between -50.0 and 50.0.

Parameters
modid: (Input) LVDT Module ID.
rawdata: (Input) Raw position value.
outvelocity: (Output) Scaled PVelocity value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_LVDT_ConvertToVelocityRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVelocityRaw ( uint32_t modid,
float64_t velocity,
uint32_t * outrawdata )

Converts scaled velocity value to raw velocity data.

Parameters
modid: (Input) LVDT Module ID
velocity: (Input)Scaled Position value
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_ConvertToVoltage()

NAIBRDFUNC nai_status_t NAIAPI naibrd_LVDT_ConvertToVoltage ( uint32_t modid,
uint32_t rawdata,
float64_t * 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.
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.