AILSystem_ConfigureTimer


Configures the timer.

Syntax

C++
Python
 
def AILSystem_ConfigureTimer(
	state: AILSystem_State,
	/,
	*,
	inDeviceID: AILSystemAndDeviceIdentifier | None = None,
	inTimer: int = 1,
	inArmEnable: bool = False,
	inArmActivation: AILTimerTriggerActivation = AILTimerTriggerActivation.EdgeRising,
	inArmTriggerSource: AILArmTimerTriggerSource | None = None,
	inTriggerSource: AILTimerTriggerSource = AILTimerTriggerSource.Continuous,
	inTriggerOverlap: AILTimerTriggerOverlap = AILTimerTriggerOverlap.Off,
	inClockSource: AILTimerSource | None = None,
	inDelaySource: AILTimerSource | None = None,
	inDelay: int = 1000000,
	inDuration: int = 1000000,
	inInvert: bool = False,
	inActivation: AILTimerTriggerActivation = AILTimerTriggerActivation.AnyEdge,
	inEnable: bool = True
)
-> None

Parameters

Name Type Range Default Description
Input will be modified ioState AILSystem_State
Input value inDeviceID AILSystemAndDeviceIdentifier | None None Device identification.
Input value inTimer int 1 - 16 1 Timer.
Input value inArmEnable bool False Specifies if timer arming is enabled or not.
Input value inArmActivation AILTimerTriggerActivation AILTimerTriggerActivation.EdgeRising Specifies timer arm activation signal
Input value inArmTriggerSource AILArmTimerTriggerSource | None None Sets which input signal will arm the timer, if timer arming is enabled.
Input value inTriggerSource AILTimerTriggerSource AILTimerTriggerSource.Continuous Trigger source for the timer.
Input value inTriggerOverlap AILTimerTriggerOverlap AILTimerTriggerOverlap.Off Specifies Trigger overlap mode
Input value inClockSource AILTimerSource | None None Clock source for the timer.
Input value inDelaySource AILTimerSource | None None Delay source for the timer.
Input value inDelay int 0 - 1000000 Delay between the timer trigger and the active portion of the timer output signal (in ns for clock source, in the number of counts for the rest).
Input value inDuration int 0 - 1000000 Duration for the active portion of the timer output signal (in ns for clock source, in the number of counts for the rest).
Input value inInvert bool False Whether to invert the output signal or not.
Input value inActivation AILTimerTriggerActivation AILTimerTriggerActivation.AnyEdge Signal variation upon which to generate a timer trigger.
Input value inEnable bool True Enable or disable the timer.