I am having troubles understanding the output of my scope in this simple simulink model:
I am using a fixed step solver (tried with ode3 and ode8).
Pulse type
of the puls generator is set to Sample based
and I varied the Period
and Pulse Width
.
First I set the simulation time to 10 and set the puls generator to Period = 10
and Puls width = 5
. The output of the scope is as expected:
But when I tried with simulation time 10,000 and the puls generator with Period = 1,000
and Puls width = 500
it seems my scope is wrong:
Why is the first falling edge at 5,500? I used the Autoscale button every time.
Using sim time 100,000 and Period = 10,000
and Puls width = 5,000
I don't even get a single falling edge:
Even with longer simulation time there seems to be a single rising edge at the end of the scope window.
What am I doing wrong? Is the scope not suitable for such long simulation times using fixed step solver? Or is it not "safe" to use the Autoscale button?