GX5961, GX5964, File
Returns the global step timeout value and state settings.
GtDio6xTimerGetStepTimeout (nHandle, pdTimeout, pnState, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Session identifier:
|
pdTimeout |
PDOUBLE |
The timeout is programmed in 10ns steps (may have an additional 10ns of error) with a range of 20ns to 42.949672970s. |
pnState |
PSHORT |
Returns the timeout state:0. GTDIO6X_DISABLED: timeout disabled. 1. GTDIO6X_ENABLED: timeout enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
This function programs the sequence timeout value and state. The sequence timer restarts at the beginning of every sequence step. The restart can be disabled using the STO Continue flag in the GtDio6xStepSetOutputFlag function. If the state is enabled, a sequence timeout will set bit 7 (STO) in the sequence event register. The timeout is programmed in 10ns steps (may have an additional 10ns of error) with a range of 20ns to 42.949672970s.
The following example sets the global step timeout value to 10 sec and enable the timeout and returns the settings:
SHORT nStatus,nState;
DOUBLE dTimeout;
GtDio6xTimerSetStepTimeout (nHandle, 10e9, GTDIO6X_ENABLED, &nStatus);
GtDio6xTimerGetStepTimeout (nHandle, &dTimeout, &nState, &nStatus);
GtDio6xStepSetPauseResumeTrigger, GtDio6xSequencerRun, GtDio6xSequencerRunEx, GtDio6xSequencerStop, GtDio6xSequencerHalt, GtDio6xGetErrorString