User’s Manual
59
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
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
int anaOutCalib(int channel, int calib_index,
int value1, float volts1, int value2,
float volts2);
void anaOutStrobe(void);
Содержание Wolf BL2600
Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...
Страница 36: ...32 Wolf BL2600 ...
Страница 66: ...62 Wolf BL2600 ...
Страница 100: ...96 Wolf BL2600 ...
Страница 104: ...100 Wolf BL2600 ...
Страница 106: ......