Gx6021SetDaisyChainMode

Purpose

Sets the board Daisy Chain connection mode.

Syntax

Gx6021SetDaisyChainMode (nHandle, nMode, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6021 board.
nMode
SHORT
Specifies the Daisy Chain mode:
  • 0 = GX6021_DAISY_CHAIN_NONE
  • 1 = GX6021_DAISY_CHAIN_VIA_ FIRST_ GROUP
  • 2 = GX6021_DAISY_CHAIN_VIA_ LAST_ GROUP
  • 3 =  GX6021_DAISY_CHAIN_VIA_FIRST_AND_LAST_GROUP
See comments for details.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Daisy Chain modes:

        0 = GX6021_DAISY_CHAIN_NONE: No daisy connection. By default, this imply that the factory Loop Back Cable should be installed.

        1 = GX6021_DAISY_CHAIN_VIA_FIRST_GROUP: Additional GX6021 board is connected through group A (factory Loop Back Cable not installed).

        2 = GX6021_DAISY_CHAIN_VIA_LAST_GROUP: Additional GX6021 board is connected through group D (factory Loop Back Cable not installed).

        3 = GX6021_DAISY_CHAIN_VIA_FIRST_AND_LAST_GROUP: Additional GX6021 boards are connected through groups A and D (factory Loop Back Cable not installed).

Example

The following example set the Daisy Chain mode to last group (D):

 

SHORT nStatus;

Gx6021setDaisyChainMode (nHandle, GX6021_DAISY_CHAIN_VIA_LAST_GROUP, &nStatus);

 

See Also

Gx6021GetDaisyChainMode, Gx6021Open, Gx6021Close, Gx6021SetGroupRelays, Gx6021GetChannel, GxSWGetErrorString