Switching Continuous Signals

This model shows how to handle hybrid systems with both continuous and discrete inputs (and outputs). The EventSource actor generates a sequence of discrete events which trigger the transition of the FSM inside the continuous time composite actor. The FSM routes one of the two continuous time input signals to the output. Notice that the "trigger" port of the continuous time composite actor has a parameter "signalType" with value "DISCRETE", which helps the CTDirector to schedule and execute the model correctly.

An alternative definition uses Vergil, the Ptolemy II schematic editor.