User`s manual

XP8900 Software Reference s 59
Table 8-2 summarizes these three functions. The order in which they
appear in Table 8-2 is the sequence in which they should be used to start an
XP8900 Series board.
int plcXP89WrCalib( int chan,
struct
_
eioAdcCalib *pCalib )
Writes a calibration structure to the EEPROM storage corresponding to
a channel on the XP8900 Series board.
PARAMETERS: chan is the channel number, 063, of the XP8900
Series D/A channel. chan = 8*board_number + channel_number.
_
eioAdcCalib *pCalib is a pointer to a calibration structure
initialized by calling eioAdcMakeCoeff.
RETURN VALUE: 0 if the calibration is successful, otherwise returns
a negative number.
LIBRARY: EZIOPBDV.LIB
Table 8-2. Summary of Basic XP8900 Series Function Calls
Function Description
plcXP89Init
Disables everything, leaves output of 0 V for all channels
plcXP89Sw
Enables voltage reference so the output will be at the voltage
level specified by plcXP89Out
plcXP89Out
Sets all channels to midpoint or other acceptable value (the
output experiences a slight jump as channels are being set;
remember to set all 4 or 8 channels since one call sets only
one channel)
plcXP89WrCalib(15,&cstruct)
// write calib info in cstruct to channel 7 of
// XP8900 Series board 1