10
Smart Star A/D Converter Cards (SR9300)
2.2 Smart Star A/D Converter Card Function APIs
The A/D converter card calibration constants, gain, and offset are stored in the factory in the
upper half of the EEPROM on the A/D converter card. Use this function to read the A/D con-
verter card calibration constants, gain, and offset from the upper half of the EEPROM on the
A/D converter card
Parameters
channel
is the analog input channel.
channel
should be passed as
channel = (slotnumber * 128) + (channelnumber)
where
slotnumber
is 0–6, and
channelnumber
is 0–10
or
channel = ChanAddr(slotnumber, channelnumber)
where
slotnumber
is 0–6, and
channelnumber
is 0–10.
Return Value
0 if successful.
-1—control command unacceptable.
-2—EEPROM address unacceptable.
See Also
anaInEEWr
The calibration constants may also be saved in the flash memory on the Smart Star CPU card.
Doing so will speed up A/D conversions since a memory access from flash memory will be
faster than from EEPROM. Use
anaSaveCalib
to save the current set of calibration con-
stants for the analog input and output channels in the Smart Star flash memory. The calibration
constants stored in flash memory can then be accessed at any time with the
anaLoadCalib
function.
If the factory-set calibration are not used, customer-measured calibration constants should first
be established using the
anaInCalib
function.
Return Value
None.
See Also
anaLoadCalib, anaInCalib
int anaInEERd(int channel);
int anaSaveCalib();
Summary of Contents for SR9300
Page 4: ...iv Smart Star A D Converter Cards SR9300 ...
Page 20: ...16 Smart Star A D Converter Cards SR9300 ...
Page 24: ...20 Smart Star A D Converter Cards SR9300 ...
Page 28: ...24 Smart Star A D Converter Cards SR9300 ...
Page 32: ...28 Smart Star A D Converter Cards SR9300 ...
Page 34: ...30 Smart Star A D Converter Cards SR9300 ...
Page 37: ...B NONE ...
Page 39: ......