Structure containing parameters used in D/A auto-calibration.
Structure Definition
publicstructDSCDACALPARAMS { public int fixedstatus; /* INPUT/OUTPUT: reports the "fixed" status that was detected. fixed=FALSE means programmable. */
publicint polarity; /* INPUT/OUTPUT: Bipolar=FALSE, Unipolar=TRUE */publicdouble darange; /* INPUT: D/A programmable value to calibrate */publicfloat offset; /* OUTPUT: Difference between target and measured vals. */publicfloat gain; /* OUTPUT: Difference between target and measured vals. */publicfloat cal_point; /* INPUT: D/A value to calibrate */ // New for the Helios and later D/A-capable boards.publicbyte darange_calibrate; /* The D/A range to calibrate. */publicbyte 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)]
publicbyte[] 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; */
publicint ch1pol, ch1prog, ch1ext;publicfloat 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