Applies To
GX5150, GX5280, GX5290, GX5290e
Purpose
Returns the board I/O module termination mode.
Syntax
DioGetTermination (nHandle, nIOModuleCon, pnTermination, pnStatus).
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Board handle. |
pnTermination |
PSHORT |
Termination mode values are as follow: GX5150: 0 Disable. 1 Enable. GX5280/GX5290/GX5290e: Returns bits 0-3 I/O Group Terminators enables or disables. Each bit represents Group0 thorough 3 each Group with 8 channels. Bit Low: Terminators Off Bit High: Terminators On |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
The function returns an error if the current I/O module does not support the termination option. See the specific I/O module manual to check if it supports this option.
Example
The following example returns the termination satate for a board specified by the board handle:
SHORT nStatus, nTrmination;
DioGetTermination (nHandle, &nTrmination, &nStatus);
See Also
DioSetupTermination, DioGetIOModuleType, DioGetErrorString