Simulink - How to prove if trigger signal exist or still running

Hi guys,
I have an triggered subsystem in my model.
When the there is no more trigger signal i want to set the output signal of this triggered subystem to 0.
How can i prove this or how can I set the output to zero if there is no trigger signal?
The trigger signal is a rectangular signal and my subsystem is set on "either".
At a specific time or when a goal is reached the trigger signal is no more changing and the signal stays constant.
Thanks in advance =)

5 Comments

Do you know the time at which the trigger signal is no more changing??
Thanks for your respnonse.
No not really the system has to reach a specific value then the DC Motor inside stops turning and no signal is available.
But the triggered subsystem is holding the last value but it should "turn off".
See picture below:
1 -> this is the Signal which is used as the trigger signal (three rectangular signals)
2 -> is the output of the trigger (like how is he reacting to the input signal)
3 -> And three (blue signal) is caclulated in this triggered subystem
- I get the time difference between each flank and i calculate the time difference between them and uses this value to go on to calculate the speed out of the Halls
- The yellow signal is a signal out of a simscape motion sensor and this is how the blue one should look like (I mean it should go to zero)
2019-11-04_10-17-11.png
This is how the system looks like just some snaps.
2019-11-04_12-03-35.png
And in the triggered Subsystem u will find this:
2019-11-04_13-04-58.png
This is in the subsystem Meas_dt:
2019-11-04_13-06-13.png
And this in the CalcSpeed subsystem:
2019-11-04_13-08-36.png
Can you upload the model instaed of screenshots?
Sorry for the late response.
I build here an example with different options.
At the end there are no flanks anymore so i dont want the system to hold the last value i want it to go to 0 but i dont know how to realise this.. .

Sign in to comment.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2018b

Asked:

on 1 Nov 2019

Commented:

on 18 Nov 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!