User`s manual

XP8900 Software Reference s 61
long eioAdcDigitize( float f,
struct
_
eioAdcCalib *pCalib )
Converts analog value to digital number according to calibration
coefficients. This function is used to convert an analog value such as
voltage to the actual digital number for a D/A converter device.
PARAMETERS: f is the analog value to output.
_
eioAdcCalib *pCalib
is a pointer to a structure that stores the
calibration coefficients.
RETURN VALUE: Long integer that corresponds to the number to
send to a D/A converter device.
LIBRARY: EZIOPBDV.LIB
L=eioAdcDigitize(2.54,&cinfo);
// L will contain the digitized value to output
// to D/A converter device given the
// calibration coefficients in cinfo so that
// the output is about 2.54 of some real units