GX5280, GX5290, GX5290e, GX5295
Sets the specified Signal edge or level active mode.
DioSetupSignalEdgeOrLevelMode (nMasterHandle, nSignal, nMode, pnStatus)
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master board handle. |
nSignal |
SHORT |
Signal can be one of the following:0 DIO_EXTERNAL_STROBE_ENABLE1 DIO_EXTERNAL_CLOCK_ENABLE2 DIO_EXTERNAL_PAUSE3 DIO_EXTERNAL_TRIGGER4 DIO_OUTPUT_RUN5 DIO_OUTPUT_ARM6 DIO_PXI_STAR_TRIGGER7 DIO_PXI_TRIGGER_BUSSee 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. |
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.
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);
DioGetSignalEdgeOrLevelMode, DioSetupPxiTriggerBusLineMode, DioGetErrorString