- From the block parameters of “PS Repeating Sequence”, select the “Signal type” as continuous.
- To get the “Durations” and “Start output values”, run the script below in “Command Window” which helps in generating these parameters.
- These parameters will be generated in “Workspace” window which can be accessed in block parameters of PS Repeating Sequence by entering the variable names into their respective fields as shown in the image below:

- Additionally, connect a “Solver Configuration” block to the model, as shown below:

- Connect a Scope and run the simulation to view the output