Gx5641LoadGroupDirectionFromDIPSwitch

Purpose

Load and set the specified group Direction according to the on-board DIP Switch settings.

Syntax

Gx5641LoadGroupDirectionFromDIPSwitch (nHandle, nGroup, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5641 board.
nGroup
SHORT
Group value is as follows:
0. GX5641_GROUP0 (channels 0 to 31)
1. GX5641_GROUP1 (channels 32 to 63)
pnStatus
 
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The group’s channels conversion settings will be loaded and set according to the on-board conversion direction DIP-Switches.

Note: All channels in the specified group need to be set to static I/O mode prior calling this function by calling Gx5641SetGroupMode.

Example

The following example load and set the group 0 Direction according to the on-board DIP Switch settings:

 

Gx5641LoadGroupDirectionFromDIPSwitch (nHandle, GX5641_GROUP0, &nStatus);

 

See Also

Gx5641SetGroupConversionMode, Gx5641SetGroupMode, Gx5641SetGroupOutputState, GxPioGetErrorString