GX5295, File.
Return the channel Tri-State termination mode.
DioGetTriStateTerminationMode (nHandle, nChannel, pdVoltage, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Master board handle, Board handle or File board handle. |
nChannel |
SHORT |
If Board Handle was passed:Channel number in the DIO board, each board has 32 I/O channels, I/O channels number range is 0-31.Each DIO board has 4 Auxiliary channels number range is 0-3.If Master Board Handle was supposed:Channel number in the DIO domain, each DIO board adds 32 I/O channels, I/O channels number range is 0-991 (1 master and 30 slaves).Each DIO board adds 4 Auxiliary channels, Auxiliary channels number range is 0-123 (1 master and 30 slaves). |
pdVoltage |
PDOUBLE |
Returned Tri-State termination voltage. The specified termination voltage is the same voltage that is used by the input active load commuting voltage.Voltage range is -2V to +7V. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
GX5295:
The specified termination voltage is the same voltage that is used by the input active load commuting voltage.
Channels termination voltage can be read back and set dynamically at any time even while the DIO is running mode.
The following example returns the channel Tri-State termination mode for channel 0:
DOUBLE dVoltage;
DioGetTriStateTerminationVoltage (nHandle, 0, &dVoltage, &nStatus);
DioGetTriStateTerminationVoltage, DioGetTriStateTerminationMode, DioSetupInputLoadCurrent, DioSetupInputLoadCommutatingVoltage, DioGetErrorString