TriggeredContinuousClock

This page contains an applet that should appear as a separate window.

This model shows how to use a modal model and a discrete actor to model a triggered a continuous clock signal in the CT domain. The modal model has four states. Each state produces a constant value. The modal model is at the "init" state initially and outputs a constant continuous-time signal with value as the defaultOutputValue. When the modal model receives a trigger event, which happens at 0.5, the modal model starts iterating the other three states repeatedly. The output signal from the modal model is a continuous clock signal with period as 4.0 and offsets as { 0.0, 1.0, 2.0}.

\ \ MoML specification for this model. \