DSCDACALPARAMS

Structure containing parameters used in D/A auto-calibration.

Structure Definition

public struct DSCDACALPARAMS
    {
        public int fixedstatus; /* INPUT/OUTPUT: reports the "fixed" status that was detected.  fixed=FALSE means programmable. */

        public int polarity;    /* INPUT/OUTPUT: Bipolar=FALSE, Unipolar=TRUE */

        public double darange;  /* INPUT:  D/A programmable value to calibrate */

        public float offset;    /* OUTPUT: Difference between target and measured vals. */

        public float gain;      /* OUTPUT: Difference between target and measured vals. */

        public float cal_point;         /* INPUT: D/A value to calibrate */

        // New for the Helios and later D/A-capable boards.
        public byte darange_calibrate;  /* The D/A range to calibrate. */

        public byte boot_darange;       /* The D/A range to boot up in. */

        [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 8, ArraySubType = System.Runtime.InteropServices.UnmanagedType.Struct)]
        public byte[] cycles;           // number of cycles the calibration took

        /*///////////////////////////
        // For DMMAT specific use: //
        ////////////////////////// */
        public int ch0pol, ch0prog, ch0ext;  /* cho0pol=true: bipolar, ch0prog=true: programmable, ch0ext=true: external; */

        public int ch1pol, ch1prog, ch1ext;

        public float reference;

    }

Structure Members

The following parameters are used only on Diamond-MM-AT. This board has independent D/A settings for each analog output channel. The parameters below correspond to the jumper settings on the board.

The parameter darange_calibrate is used for Helios board only. This parameter is used to perform DA calibration verification on the mode being verified. The valid modes are specified in the DA table. The valid values for this parameter are

Last updated