Gx5642LoadGroupDirectionFromDIPSwitch

Purpose

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

Syntax

Gx5642LoadGroupDirectionFromDIPSwitch (nHandle, nGroup, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5642 board.
nGroup
SHORT
Group value is as follows:
0. GX5642_GROUP0 (channels 0 to 31)
1. GX5642_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 Gx5642SetGroupMode.

Example

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

 

Gx5642LoadGroupDirectionFromDIPSwitch (nHandle, GX5642_GROUP0, &nStatus);

 

See Also

Gx5642SetGroupConversionMode, Gx5642SetGroupMode, Gx5642SetGroupOutputState, GxPioGetErrorString