DSCADSETTINGS

Universal Driver Documentation

Structure Definition

typedef struct {

    BYTE current_channel;
    BYTE gain;
    BYTE range;
    BYTE polarity;
    BYTE load_cal;
    BYTE scan_interval;

} DSCADSETTINGS;

Structure Members

Name Description
current_channelThe channel on which to perform A/D conversions
gainThe gain setting to use for A/D conversions; valid settings are GAIN_1, GAIN_2, GAIN_4, and GAIN_8
rangeThe range setting for A/D conversions; this is not to be confused with the term "A/D range" or "input range". Valid settings are RANGE_5 or RANGE_10
polarityThe polarity setting to use for A/D conversions; valid settings are BIPOLAR or UNIPOLAR
load_calIf TRUE, the board will retrieve the calibration settings for the selected A/D range from the EEPROM and store it in the calibration circuit before performing the A/D conversion. This results in higher accuracy but causes a slight delay of a few milliseconds. If FALSE, the board will use the current calibration settings and start the A/D conversion immediately. Once a particular A/D range's calibration settings are loaded into the board, they will remain loaded until the board powers off or a new set of settings is loaded. When the board powers up, it automatically loads the settings defined as the boot mode. The boot mode is set with the autocal function.
scan_intervalDetermines the time delay between consecutive A/D conversions during an A/D scan operation. When you perform an A/D scan, the individual A/D samples will be spaced apart by exactly this amount of time. The time delay affects the maximum possible sample rate. For example, if you want to achieve a 100KHz sample rate, the maximum scan interval is 1/100KHz = 10 microseconds.

    0    20 microseconds (default value)
    1    15 microseconds
    2    10 microseconds
    3    5 microseconds


This page was last modified 17:52, 15 Mar 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.