DSCADSETTINGS

Structure Definition

    public struct DSCADSETTINGS
    {
        public byte current_channel;    
        public byte gain;               
        public byte range;              
        public byte polarity;          
        public byte load_cal;          
        public byte scan_interval;      
        public byte clk;                           
        public byte low_channel;       
        public byte high_channel;      
        public byte prog_delay;        
        public int Sedi;                
        public int Sign;               
        public int ScanEnable;        
        public int ProgInt;          

    }

Structure Members

Name

Description

Applicable Boards

current_channel

The channel on which to perform A/D conversions

Diamond-MM-16RP-AT

gain

The gain setting to use for A/D conversions; valid settings are GAIN_1, GAIN_2, GAIN_4, and GAIN_8

Diamond-MM-16RP-AT

range

The 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

Diamond-MM-16RP-AT

polarity

The polarity setting to use for A/D conversions; valid settings are BIPOLAR or UNIPOLAR

Diamond-MM-16RP-AT

load_cal

If 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.

Diamond-MM-16RP-AT

scan_interval

Determines 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

4 9 microseconds

5 4 microseconds

Diamond-MM-16RP-AT

clk

Clock INPUT: 0 = ADSTART=1, 1 = falling edge of P_ADTRIG, 2 = rising edge of conter0, 3 = rising edge of counter1

NA

low_channel

low channel for A/D conversion

NA

high_channel

high channel for A/D conversion

NA

Sedi

0 = single-ended, 1 = differential

NA

Sign

if Differential mode is enabled: 0 = even channel is high; 1 = odd channel is high q

NA

ScanEnable

0 = disable, 1 = enable

NA

ProgInt

If ScanInterval is programmable, then ProgInt is the time in nano seconds (0 – 255)

NA

Last updated