DioGetExternalInputsStates

Applies To

GX5150, File

Purpose

Returns the External Inputs States.

Syntax

DioGetExternalInputsStates (nMasterHandle, pdwInputsStates, pnStatus)

Parameters

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.

Comments

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

 

Example

The following example e returns the External Inputs States:

 

DWORD dwInputsStates;

DioGetExternalInputsStates (nHandle, &dwInputsStates, &nStatus);

 

See Also

DioGetErrorString