GX5961, GX5964
Calibrates and adjust deskew of all the channels in the domain.
GtDio6xCalibrateDomainChannelsDeskew (nHandle, nMode, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Session identifier:● Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization. |
nMode |
SHORT |
Not used, pass as 0. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
This function is used to calibrate and adjust deskew all channels in the domain. Whenever a domain is connected to a UUT, calling this function will adjust the delay of all the channels in the domain in order to minimize the skew between the channels. The user needs to disconnect the UUT and leave the cables leading to the UUT open. After the function is done, the UUT connections will need to be reconnected.
The following example runs the deskew calibration and adjustment of all the channels in the domain, and returns all the skew delay parameters of channel 0:
SHORT nStatus;
DOUBLE dDelay;
GtDio6xCalibrateDomainChannelsDeskew (nHandle, 0, &nStatus);
GtDio6xChannelSetSkewDelay(nHandle, 0, GTDIO6X_SKEW_DELAY_DRIVE, GTDIO6X_SKEW_PROPAGATION_DELAY, &dDelay, &nStatus);
GtDio6xChannelGetSkewDelay(nHandle, 0, GTDIO6X_SKEW_DELAY_DRIVE, GTDIO6X_SKEW_DELAY_FALLING_EDGE_ONLY, &dDelay, &nStatus);
GtDio6xChannelSetSkewDelay(nHandle, 0, GTDIO6X_SKEW_DELAY_SENSE, GTDIO6X_SKEW_PROPAGATION_DELAY, &dDelay, &nStatus);
GtDio6xChannelGetSkewDelay(nHandle, 0, GTDIO6X_SKEW_DELAY_SENSE, GTDIO6X_SKEW_DELAY_FALLING_EDGE_ONLY, &dDelay, &nStatus);
GtDio6xChannelSetSkewDelay, GtDio6xChannelGetSkewDelay, GtDio6xGetErrorString