DioSetupTermination

Applies To

GC5050, GX5050, GX5150, GX5280, GX5290, GX5290e

Purpose

Enables or disables the specified I/O board module termination.

Syntax

DioSetupTermination (nHandle, nTermination, pnStatus).

Parameters

Name

Type

Comments

nHandle

SHORT

Board handle.

nTermination

SHORT

GC5050/GX5050/GX5150 Termination mode values are as follows:

0  Disable.

1  Enable.

GX5280/GX5290/GX5290e:

I/O Group Terminators bits 0-3. Each bit represents Group of 8 channels terminators state. Bit Low: Terminators Off, Bit High: Terminators Off.

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

If the current I/O module does not support termination option, the function returns an error. See the specific I/O module manual to check if it supports this option.

Example

The following example enables the termination for a board specified by the board handle:

 

SHORT   nStatus;

DioSetupTermination (nHandle, 1, &nStatus);

 

See Also

DioGetTermination, DioGetIOModuleType, DioGetErrorString