WarpClock.ComputeWarpFactor (METH)¶
METHOD FINAL ComputeWarpFactor : UDINT
Computes the “warp” factor to simulate one “warp” clock cycle by a given number of application cycles.
Example : two 10ms-application-cycles should lead to 10min warp clock increment - “warp” factor is 30000
Wrong parameters lead to “warp” factor = 1, which in turn makes the “warp” clock run in real time.
- InOut:
Scope
Name
Type
Comment
Return
ComputeWarpFactorUDINTInput
tAppCycleTIMEApplication cycle time
tWarpCycleTIME“Warp” clock cycle time
numAppCyclesPerWarpCycleUDINTNumber of application cycles needed to trigger one warp cycle