Applies To
GC5050, GX5050, GX5150
Purpose
Sets the group load.
Syntax
DioLevelShifterSetLoadResistance (nHandle, nGroup, dwLoadVal, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Board handle. |
nGroup |
SHORT |
Group number can be as follows: 0 Group A, I/O pins 1 through 16. 1 Group B, I/O pins 17 through 32. |
dwLoadVal |
DWORD |
Sets the specified group load value. Value range from 50 Ohms to –1 (No-Load) |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
In order to maintain signal levels and automatically compensate for internal voltage drop the Level-Shifter is calibrated for a range of loads. The load value must be set before setting the voltage in order to take effect.
Example
The following example sets the load value to 125 Ohms of group 0:
SHORT nStatus;
DioLevelShifterSetLoadResistance (nHandle, 0, 125, &nStatus);
See Also
DioLevelShifterGetLoadResistance, DioLevelShifterGetSummary, DioGetErrorString