.Modelica_Synchronous.RealSignals.Sampler.Utilities.AssignClockToSquareWaveHold

Generate a Boolean continuous-time square-wave output from a clocked Real input

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:

   
model simulation result

Generated at 2025-04-19T18:20:10Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos