Gx5731ModuleSetHandshakeOutputMode

Applies To

GX5701, GX5702, GX5704

Purpose

Sets the Module’s Handshake output mode.

Syntax

Gx5731ModuleSetHandshakeOutputMode (nHandle, nPort, nMode, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5733 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.   
nMade
SHORT
Handshake output mode:
0. GX5731_MODULE_HANDSHAKE_OUTPUT_DISABLE: Handshake output mode disabled.
1. GX5731_MODULE_HANDSHAKE_OUTPUT_ENABLE: Handshake output mode enabled.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The GX5731 can have up to three Modules installed. Each installed module can use Direct Output/Input or Strobed Output/Input with handshaking.

When using Direct Output/Input on each strobe signal transition, the user is responsible for setting polarity Gx5731MoudleSetExtStrobeEnablePolarity.

When using Strobed Output/Input with handshaking the hardware controls the Output/Input sequences. The handshaking mechanism is implemented using input and output control and strobe signals. See Module Strobed Output Input Handshaking section for typical handshaking events in order to output a single double word of data.

Example

The following example enable modules port 0 Handshake Output:

 

SHORT nStatus;

Gx5731ModuleSetHandshakeOutputMode (nHandle, GX5731_PORT0, GX5731_MODULE_HANDSHAKE_OUTPUT_ENABLE,

&nStatus);

 

See Also

Gx5731ModuleGetHandshakeOutputMode, Gx5731ModuleSetExtStrobeEnablePolarity, Gx5731ModuleSetStrobeSource, Gx5731ModuleSetInternalStrobeSource