GtDio6xHighVoltageIoGetInputLevels

Applies To

GX5961, File

Purpose

Returns all the High Voltage I/O channel’s Input Levels.

Syntax

GtDio6xHighVoltageIoGetInputLevels (nHandle, pdwInputLevels, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Session identifier:

     Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.

     File handle is used when communicating with a file. The File handle session identifier is  returned by calling GtDio6xFileOpen.

pdwInputLevels
PDWORD
Reads back the logic level of all 32 High Voltage I/O inputs. Bit 0 corresponds to channel 2000, bit 31 corresponds to channel 2031.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

Note: Applies only to the GX5961, the high voltage I/O are connected to J10 in the Front Panel Connector.

Example

The following example reads back the logic level of all 32 High Voltage I/O inputs:

 

SHORT nStatus;

DWORD dwInputLevels;

 

GtDio6xHighVoltageIoGetInputLevels (nHandle, &dwInputLevels, &nStatus);

 

See Also

GtDio6xHighVoltageIoSetState, GtDio6xHighVoltageIoGetState, GtDio6xHighVoltageIoGetInputThreshold, GtDio6xHighVoltageIoSetInputThreshold, GtDio6xGetErrorString