Gx5733ModuleGetType

Applies To

GX5701, GX5702, GX5704

Purpose

Returns the Module’s type.

Syntax

Gx5733ModuleGetType (nHandle, nPort, pnType, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5733 board.
nPort
SHORT
Module port 0 (GX5733_PORT0) only.
pnType
PSHORT
Returned Module types, see comments for details.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

5700 GX5733_NO_MODULE_INSTALLED: No Module installed in the specified port.

5701 GX5733_DIGITAL_INPUT_LATCH: 32-channel digital input module with variable input threshold and rapid data comparison.

5702 GX5733_DIGITAL_OUTPUT_LATCH: 32-channel digital output module with TTL levels that can be used for digital control and propagation delay testing.

5704 GX5733_DIGITAL_POWER_OUTPUT_LATCH: Module capable of driving loads or driving signals over long distances.

5709 RS422 Port I/O Module is a differential RS422 32 I/O channels module.

5711 Bidirectional LVDS-TTL Converter Module is a 16 channels module converting signals from LVSD to TTL or vise versa.

5712 Bidirectional RS422-TTL Converter Module is a 16 channels module converting signals from RS422 to TTL or vise versa.

5715 GX5733_PORT_IN_ONLY: This is the most basic configuration. The port is only capable to serve as input.

When the module type is GX5733_PORT_IN_ONLY there are certain jumpers that needs to be installed.

Example

The following example reads module port 0 type:

 

SHORT nType, nStatus;

Gx5733GetPortByte (nHandle, GX5733_PORT0, &nType, &nStatus);

 

See Also

Gx5733ModuleGetRevision