Initialize the specified channel’s for calibration and sets the load value.
GxPsUserCalSetup (nHandle, nChannel, dLoadVal, nFixedModuleType, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
nChannel |
SHORT |
Specifies the Channel for which to set the voltage:1. GXPS_CHANNEL1: Channel 12. GXPS_CHANNEL2: Channel 2 |
dLoadVal |
DOUBLE |
Load value connected to the channel measured by the user. |
nFixedModuleType |
SHORT |
In case of a Fixed Module user need to specify the Module Type to be one of the followings:3. GXPS_TYPE_PMC3: Fixed Voltage 3.3V4. GXPS_TYPE_PMC5: Fixed Voltage 5V5. GXPS_TYPE_PMC12: Fixed Voltage 12V6. GXPS_TYPE_PMC15: Fixed Voltage 15V7. GXPS_TYPE_PMC28: Fixed Voltage 28V |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure, >0 for warning. |
The function initialize the channel’s for calibration and sets the load value. The load value needs to be measured by the user before calling this function. See Preparing the Load section for details on selecting the right load value for the channel type.
The following example initialize the channel 1 for calibration with a load of 15.6Ohms.
sets the voltage in Channel 1 to 3.42 volts.
SHORT nHandle, nStatus;
GxPsUserCalSetup (nHandle, GXPS_CHANNEL1, 15.6, NULL, &nStatus);
GxPsUserCalReadMeasuredVal, GxPsUserCalRestoreFactoryCalibration, GxPsUserCalStoreCalibrationData, GxPsUserCalWriteMeasuredVal, GxPsGetErrorString