Applies To
GC5050, GX5050, GX5150
Purpose
Returns the group load settings.
Syntax
DioLevelShifterGetLoadResistance (nHandle, nGroup, pdwLoadVal, 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. |
pdwLoadVal |
PDWORD |
Returned specified group load value. Value range from 50 Ohms to –1 (No-Load) |
pnStatus |
PSHORT |
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 returns the current load settings of group 0:
SHORT nStatus;
DWORD dwLoad;
DioLevelShifterGetLoadResistance (nHandle, 0, &dwLoad, &nStatus);
See Also
DioLevelShifterSetLoadResistance, DioLevelShifterGetSummary, DioGetErrorString