dscADSetSettings()

byte dscADSetSettings(short board, ref DSCADSETTINGS settings);

Sets the A/D configuration for future A/D conversions. A delay of approximately 10 microseconds occurs during this function call in order to allow the analog circuit on the board to settle on the new settings. On -AT (auto-calibrating) boards, if adsettings->load_cal is TRUE, then load the A/D calibration settings from the EEPROM for the current A/D range. This results in slightly more accurate A/D conversions but causes an additional, longer delay of approximately 10 milliseconds.

Name

Description

board

The handle of the board to operate on

DSCADSETTINGS

The A/D scan settings to be used

Return Value

Error code or 0.

Last updated