User`s manual
100 www.rabbit.com Applications Programming
6.6.6 Analog Outputs
flexAnaOutCalib
int flexAnaOutCalib(Flex_IOPin *pin, int value1, float volts1, int
value2, float volts2);
DESCRIPTION
Calibrates the response of the selected D/A converter channel as a linear function using the two
conversion points provided. Gain and offset constants are calculated and placed into a global ta-
ble. This function is non-reentrant.
PARAMETERS
pin Pointer to the information structure for this I/O pin.
value1 The first D/A converter value (0–1024).
volts1 The voltage corresponding to the first D/A converter value.
value2 The second D/A converter value (0–1024).
volts2 The voltage corresponding to the second D/A converter value.
RETURN VALUE
0: success
<0: error (not an analog output?)
SEE ALSO
flexAnaOut, flexAnaOutVolts