Gx5731ModuleGetType

Applies To

GX5701, GX5702, GX5704

Purpose

Returns the Module’s type.

Syntax

Gx5731ModuleGetType (nHandle, nPort, pnType, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5731 board.
nPort
SHORT
Specified Module's port number:
0. GX5731_PORT0: Module port 0
1. GX5731_PORT1: Module port 1
2. GX5731_PORT2: Module port 2.   
pnType
PSHORT
Returned Module types, see comments for details.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

5700  GX5731_NO_MODULE_INSTALLED: No Module installed in the specified port.

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

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

5704  GX5731_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.

5714  GX5731_DIGITAL_PORT_IO: Digital port I/O.

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

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

Example

The following example reads module port 0 type:

 

SHORT nType, nStatus;

Gx5731GetPortByte (nHandle, GX5731_PORT0, &nType, &nStatus);

 

See Also

Gx5731ModuleGetRevision