NMX_DigitalOutputsGetState_1

<< Click to Display Table of Contents >>

Navigation:  NmxDLL Reference Manual > API (programming interface) > Static Measurement (Non-Realtime) >

NMX_DigitalOutputsGetState_1

This function allows reading the current state of all digital outputs from the device.

 

Definition


NMX_STATUS NMX_DigitalOutputsGetState_1(

 NMX_PHANDLE pHandle,

 unsigned char* pucOutputState,

 unsigned long ulSizeofOutputState);

 

Parameter


pHandle

Connection Handle.

pucOutputState

Pointer to the array, in which the digital output bytes shall be stored.
The data type of the array is "unsigned 8 Bit".
The array must be provided by your application.

ulSizeofOutputState

Size of pucOutputState in Bytes.

 

Typical function call (C example)


NMX_DigitalOutputsGetState_1(pHandle, aucOutputs, sizeof(aucOutputs));

 

Comments


The purpose of this function is getting the state of all digital outputs once after establishing a connection. It should not be called cyclically.

The state reflects the internal data inside the measurement system. It does not reflect the physical state of an output. Usually both are the same, but under fault conditions they may differ.