Applies To
GC5050, GX5050, GX5150
Purpose
Returns the type of the I/O module currently connected.
Syntax
DioGetIOModuleType (nHandle, pnType, pnStatus)
Parameters
Name |
Type |
Comments |
nHandle |
SHORT |
Board handle. |
pnType |
PSHORT |
Return types are as follow: 0x10: Standard TTL. 0x20: Frequency-Doubler. 0x30: Level Shifter. 0x40: PECL-TTL Translation. 0x50: Real Time Comparison 0x60: Low Voltage Differential Signaling (LVDS). 0xFF: No I/O module present. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Example
The following example returns the I/O module type:
SHORT nStatus, nType;
DioGetIOModuleType(nHandle, 0, &nType, &nStatus)
See Also