I have a hard time getting an ideal step signal triggered by an impulse. I'm not able to hold the impulse at its peak.
In the pictures can be seen that I have some logic producing an ideal pulse with width = stepsize
and amplitude = 1
(Scope 1) - but I need a step of the same amplitude. I tried a lot of stuff (memory elements, adding constants and so on) and came up with the idea above. I don't understand why it isn't working? Why don't I get amplitude = 1
for my step (Scope 2)?
Isn't there a better solution?
some facts:
- I just have the basic Simulink
- it's a time-continuous model
convert
is just inverting boolean to double to satisfy the switch conditions
Edit: It is very important that I only get a step for the first pulse, if it ever happens, that there is another pulse, the output should remain 1. (well that could be easily solved with a saturation block)