Z-World Wolf BL2600 User Manual page 63

C-programmable single-board computer with ethernet
Table of Contents

Advertisement

int anaOutCalib(int channel, int calib_index,
int value1, float volts1, int value2,
float volts2);
Calibrates the response of a given D/A converter channel as a linear function with using two conversion
points provided by the user. Gain and offset constants are calculated and written to the EEPROM for use
by the D/A converter API functions.
PARAMETERS
channel is the D/A converter output channel (0–3).
calib_index is an index used to go to the proper location in the lookup table for writing the calibra-
tion data:
0 = 0–10 V calibration data
1 = ±10 V calibration data
2 = 4–20 mA calibration data (unipolar configuration)
3 = 4–20 mA calibration data (bipolar configuration)
value1 is the first D/A converter value (0–4095).
volts1 is the voltage or current corresponding to the first D/A converter value
(0–10 V, ±10 V or 4– 20 mA).
value2 is the second D/A converter value (0–4095).
volts2 is the voltage or current corresponding to the second D/A converter value
(0–10 V, ±10 V or 4– 20 mA).
NOTE: The 10 and 90% points of the maximum voltage range are recommended when calibrating
a channel.
RETURN VALUE
0 if sucessful.
-1 if not able to make calibration constants.
SEE ALSO
brdInit, anaOut, anaOutVolts, anaOutmAmps, anaOutStrobe, anaOutConfig
void anaOutStrobe(void);
Strobes the D/A converter chip, which will update all the outputs with the previously written values (or
default value of zero).
This function is only valid if the D/A converter chip has been configured for synchronous operation
using the anaOutConfig function.
RETURN VALUE
None.
SEE ALSO
brdInit, anaOut, anaOutmAmps, anaOutStrobe, anaOutConfig, anaOutCalib
User's Manual
59

Advertisement

Table of Contents
loading

Related Products for Z-World Wolf BL2600

Table of Contents