GX5150, File
Returns the External Inputs States.
DioGetExternalInputsStates (nMasterHandle, pdwInputsStates, pnStatus)
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master board or File board handle. |
pdwInputsStates |
PDWORD |
Returns the External Inputs States. See comments for details. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
This function allows monitoring of the different External Inputs States when each bit represents a specified External Inputs State as follows:
Bit # |
Description |
0 |
External clock enable monitor: 0-input is not active (input logic high), 1-input is active (input logic low). |
1 |
External strobe enable monitor: 0-input is not active (input logic high), 1-input is active (input logic low). |
2 |
External trigger input signal: 0-input is not active (input logic high), 1-input is active (input logic low). |
3 |
External pause input signal: 0-input is not active (input logic high), 1-input is active (input logic low). |
4 |
Star Trigger input Line: 0-input is not active (input logic high), 1-input is active (input logic low). |
5-7 |
Not used, read as zeros |
8-11 |
External Output enable input signals: 0-input is not active (input logic high), 1-input is active (input logic low). |
12-15 |
Not used, read as zeros |
16-23 |
PXI Trigger Bus lines input signals: 0-input is not active (input logic high), 1-input is active (input logic low). |
24-31 |
Not used, read as zeros |
The following example e returns the External Inputs States:
DWORD dwInputsStates;
DioGetExternalInputsStates (nHandle, &dwInputsStates, &nStatus);