DioSetupSignalEdgeOrLevelMode

Applies To

GX5280, GX5290, GX5290e, GX5295

Purpose

Sets the specified Signal edge or level active mode.

Syntax

DioSetupSignalEdgeOrLevelMode (nMasterHandle, nSignal, nMode, 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.
nMode
SHORT
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 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.

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 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_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 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_HIGH – signal is active when high level is present.

DIO_OUTPUT_ARM:

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_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).

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

DIO_PXI_TRIGGER_BUS:

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).

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

Example

The following example sets the external strobe enable input signal to be active on rising edge:

 

DioSetupSignalEdgeOrLevelMode (nMasterHandle, DIO_EXTERNAL_STROBE_ENABLE, DIO_SIGNAL_ACTIVE_RISING_EDGE, &nStatus);

 

See Also

DioGetSignalEdgeOrLevelMode, DioSetupPxiTriggerBusLineMode, DioGetErrorString