GX5961, File
Returns all the High Voltage I/O channel’s Input Levels.
GtDio6xHighVoltageIoGetInputLevels (nHandle, pdwInputLevels, pnStatus)
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. |
Note: Applies only to the GX5961, the high voltage I/O are connected to J10 in the Front Panel Connector.
The following example reads back the logic level of all 32 High Voltage I/O inputs:
SHORT nStatus;
DWORD dwInputLevels;
GtDio6xHighVoltageIoGetInputLevels (nHandle, &dwInputLevels, &nStatus);
GtDio6xHighVoltageIoSetState, GtDio6xHighVoltageIoGetState, GtDio6xHighVoltageIoGetInputThreshold, GtDio6xHighVoltageIoSetInputThreshold, GtDio6xGetErrorString