GxPsUserCalSetup

Purpose

Initialize the specified channel’s for calibration and sets the load value.

Syntax

GxPsUserCalSetup (nHandle, nChannel, dLoadVal, nFixedModuleType, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
GX7400 slot number.
nChannel
SHORT
Specifies the Channel for which to set the voltage:
1. GXPS_CHANNEL1: Channel 1
2. 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.3V
4. GXPS_TYPE_PMC5: Fixed Voltage 5V
5. GXPS_TYPE_PMC12: Fixed Voltage 12V
6. GXPS_TYPE_PMC15: Fixed Voltage 15V
7. GXPS_TYPE_PMC28: Fixed Voltage 28V
pnStatus
LPSHORT
Returned status: 0 on success, negative number on failure, >0 for warning.

Comments

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.

Example

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);

 

See Also

GxPsUserCalReadMeasuredVal, GxPsUserCalRestoreFactoryCalibration, GxPsUserCalStoreCalibrationData, GxPsUserCalWriteMeasuredVal, GxPsGetErrorString