.Modelica.Clocked.RealSignals.Sampler.Utilities.AssignClockToSquareWaveHold

Information

This block creates a Boolean, continuous time, square-wave output. Whenever the clock of the input signal is active the Boolean output value changes.

Example

The following example samples a sine signal with a periodic clock of 20 ms period. After that a Boolean, continuous time, square-wave signal is generated that changes its value at every clock tick of the sampled signal:

AssignClockToSquareWaveHold_Model.png     AssignClockToSquareWaveHold_Result.png
model simulation result

Generated at 2020-06-05T21:39:08Z by OpenModelica 1.16.0~dev-442-g2e5bc9f