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

ComputeWarpFactor

UDINT

Input

tAppCycle

TIME

Application cycle time

tWarpCycle

TIME

“Warp” clock cycle time

numAppCyclesPerWarpCycle

UDINT

Number of application cycles needed to trigger one warp cycle