See ModelingToolkitStandardLibrary.Blocks.Step.
Events in MTK have a list of known issues, try to use the step block instead, and for a square wave, try Blocks.Sine followed by Blocks.Sign
See ModelingToolkitStandardLibrary.Blocks.Step.
Events in MTK have a list of known issues, try to use the step block instead, and for a square wave, try Blocks.Sine followed by Blocks.Sign