DioGetSignalEdgeOrLevelMode

Applies To

GX5280, GX5290, GX5290e, GX5295

Purpose

Returns the Signal edge or level active mode.

Syntax

DioGetSignalEdgeOrLevelMode (nMasterHandle, nSignal, pnMode, pnStatus)

Parameters

Name
Type
Comments
nMasterHandle
SHORT
Master board handle.
nSignal
SHORT
Signal can be one of the following:
0  DIO_EXTERNAL_STROBE_ENABLE
1  DIO_EXTERNAL_CLOCK_ENABLE
2  DIO_EXTERNAL_PAUSE
3  DIO_EXTERNAL_TRIGGER
4  DIO_OUTPUT_RUN
5  DIO_OUTPUT_ARM
6  DIO_PXI_STAR_TRIGGER
7  DIO_PXI_TRIGGER_BUS
See Comments below for details.
pnMode
PSHORT
Signal active mode can be one of the following:
0  DIO_SIGNAL_ACTIVE_LOW - signal is active when low level is present (default).
1  DIO_SIGNAL_ACTIVE_HIGH - signal is active when high level is present.
2  DIO_SIGNAL_ACTIVE_RISING_EDGE - signal logic when low to high transient occur.
3  DIO_SIGNAL_ACTIVE_FALLING_EDGE - signal is active when high to low transient occur.
See Comments below for details.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function returns the current settings of the specified active mode for input control signals and output monitoring signals residing on the Timing connector. Each signal can be set as follows:

DIO_EXTERNAL_STROBE_ENABLE:

The external strobe enable input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_SIGNAL_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_SIGNAL_ACTIVE_HIGH – signal is active when high level is present.

 DIO_EXTERNAL_CLOCK_ENABLE:

The external clock enable input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_SIGNAL_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_SIGNAL_ACTIVE_HIGH – signal is active when high level is present.

DIO_EXTERNAL_PAUSE:

The external pause enable input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_SIGNAL_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_SIGNAL_ACTIVE_HIGH – signal is active when high level is present.

2. DIO_SIGNAL_ACTIVE_RISING_EDGE – signal logic when low to high transient occur.

3. DIO_SIGNAL_ACTIVE_FALLING_EDGE – signal is active when high to low transient occur.

DIO_EXTERNAL_TRIGGER:

The external trigger input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_LOGIC_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_LOGIC_ACTIVE_HIGH – signal is active when high level is present.

2. DIO_LOGIC_ACTIVE_RISING_EDGE – signal logic when low to high transient occur.

3. DIO_LOGIC_ACTIVE_FALLING_EDGE – signal is active when high to low transient occur.

DIO_OUTPUT_RUN:

The output run signal Active mode (Timing connector) can be set as one of the following:

0. DIO_LOGIC_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_LOGIC_ACTIVE_HIGH – signal is active when high level is present.

DIO_OUTPUT_ARM:

The external arm input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_LOGIC_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_LOGIC_ACTIVE_HIGH – signal is active when high level is present.

DIO_PXI_STAR_TRIGGER:

The external clock enable input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_LOGIC_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_LOGIC_ACTIVE_RISING_EDGE – signal logic when low to high transient occur.

DIO_PXI_TRIGGER_BUS:

The external star trigger input signal Active mode (Timing connector) can be set as one of the following:

0. DIO_LOGIC_ACTIVE_LOW – signal is active when low level is present (default).

1. DIO_LOGIC_ACTIVE_RISING_EDGE – signal logic when low to high transient occur.

Example

The following example returns the external strobe enable input signal edge or level active mode:

 

SHORT nMode;

DioGetSignalEdgeOrLevelMode (nMasterHandle, DIO_EXTERNAL_STROBE_ENABLE, &nMode, &nStatus);

 

See Also

DioSetupSignalEdgeOrLevelMode, DioSetupPxiTriggerBusLineMode, DioGetErrorString