GtDio6xHighVoltageIoGetInputThreshold

Applies To

GX5961, File

Purpose

Returns the specified High Voltage I/O channel input threshold.

Syntax

GtDio6xHighVoltageIoGetInputThreshold (nHandle, pdThreshold, 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.

pdThreshold
PDOUBLE
Returns all the High Voltage I/O channels common voltage thresholds.
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 sets the High Voltage I/O input threshold to 10 and returns the thresholds:

 

SHORT nStatus;

DOUBLE dThreshold;

 

GtDio6xHighVoltageIoSetInputThreshold (nHandle, 10, &nStatus);

GtDio6xHighVoltageIoGetInputThreshold (nHandle, &dThreshold, &nStatus);

 

See Also

GtDio6xHighVoltageIoSetState, GtDio6xHighVoltageIoGetState, GtDio6xHighVoltageIoGetInputLevels, GtDio6xHighVoltageIoSetInputThreshold, GtDio6xGetErrorString