3.11 DA Calibration Verification
On supported boards (-AT boards), after performing a D/A autocalibration, you can verify the accuracy of the calibration. This function will return the offset and gain error of each range in LSBs.
The default D/A calibration tolerance for all boards is +/-2LSBs. In general autocalibration will result in errors of +/-1LSB or less.
Create and initialize a D/A auto-calibration settings structure (DSCDACALPARAMS).
Call dscDACalVerify and pass it a pointer to this structure in order to verify the D/A calibration of the board. The elements offset and gain of DSCDACALPARAMS will contain the error in LSB counts for D/A operations. Values of less than 2 are within tolerance.
/* Step 1 - verify the programmable range calibration from previous example */
dscdacalparams.da_range = 4.096;
/* Step 2 */
if ((result = dscDACalVerify(dscb, &dscdacalparams)) != DE_NONE)
DSCB dscb; DSCDACALPARAMS dscdacalparams; BYTE result; ... dscInit( DSC_VERSION ) ;
dsccb.base_address = 0x300;
dsccb.int_level = 5;
dscInitBoard(DSC_HELIOS, &dsccb, &board);
dacalparams.darange_calibrate = i; result = dscDACalVerify( board, &dacalparams) ; ...