Sets the currently under calibration channel output voltage according to the specified calibration step.
GxPsUserCalSetupForMeasurement (nHandle, nCalStep, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
|
nCalStep |
SHORT |
Calibration step number:1. GXPS_USER_CAL_STEP12. GXPS_USER_CAL_STEP23. GXPS_USER_CAL_STEP34. GXPS_USER_CAL_STEP45. GXPS_USER_CAL_STEP56. GXPS_USER_CAL_STEP67. GXPS_USER_CAL_STEP78. GXPS_USER_CAL_STEP89. GXPS_USER_CAL_STEP9 |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure, >0 for warning. |
The function sets the currently under calibration channel output voltage for measurement according to the calibration step. The following step will be write the measured voltage back to the driver using the GxPsUserCalWriteMeasuredVal function.
The following example sets the currently under calibration channel output for measurement according to calibration steps 3.
SHORT nHandle, nStatus;
GxPsUserCalSetupForMeasurement (nHandle, GXPS_USER_CAL_STEP3, &nStatus);
GxPsUserCalReadMeasuredVal, GxPsUserCalRestoreFactoryCalibration, GxPsUserCalSetup, GxPsUserCalStoreCalibrationData, GxPsUserCalWriteMeasuredVal, GxPsGetErrorString