DSCADSETTINGS

Structure Definition

typedef struct {

    BYTE current_channel;
    BYTE gain;
    BYTE range;
    BYTE polarity;
    BYTE load_cal;
    BYTE scan_interval;
    BYTE clk;
    BYTE low_channel;
    BYTE high_channel;
    BYTE prog_delay;
    BOOL Sedi;
    BOOL Sign;
    BOOL ScanEnable;
    BOOL ProgInt;
    BYTE DataBus;
    
} DSCADSETTINGS;

Structure Members

Name

Description

Applicable Boards

current_channel

The channel on which to perform A/D conversions

Diamond-MM-16-AT, Diamond-MM-32X-AT, Diamond-MM-16RP-AT, Diamond-MM-32DX-AT, Diamond-MM-AT, Helios

gain

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

Diamond-MM-16-AT, Diamond-MM-32X-AT, Diamond-MM-16RP-AT, Diamond-MM-32DX-AT, Aries, Diamond-MM-AT, Helios

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-16-AT, Diamond-MM-32X-AT, Diamond-MM-16RP-AT, Diamond-MM-32DX-AT, Diamond-MM-AT, Helix, DS-MPE-DAQ0804, Zeta, Helios

polarity

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

Diamond-MM-16-AT, Diamond-MM-32X-AT, Diamond-MM-16RP-AT, Diamond-MM-32DX-AT, Aries, Diamond-MM-AT, Helix, DS-MPE-DAQ0804, Zeta, Helios

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-16-AT, Diamond-MM-32X-AT, Diamond-MM-16RP-AT, Diamond-MM-32DX-AT, Aries, Diamond-MM-AT, Helios

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-16-AT, Diamond-MM-32X-AT, Diamond-MM-16RP-AT, Diamond-MM-32DX-AT, Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

clk

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

Helix, DS-MPE-DAQ0804, Zeta, Aries

low_channel

low channel for A/D conversion

Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

high_channel

high channel for A/D conversion

Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

Sedi

0 = single-ended, 1 = differential

Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

Sign

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

Helix, DS-MPE-DAQ0804, Zeta, Helios

ScanEnable

0 = disable, 1 = enable

Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

ProgInt

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

Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

ProgInt

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

Aries, Helix, DS-MPE-DAQ0804, Zeta, Helios

DataBus

0- 8-bit AD data; 1- 16-bit AD data; To enable 16/8 bit AD data read mode(Only Supported for Linux)

DMM32-DX-AT

Last updated