Simulink - problem with generation of time depends signal

2 Ansichten (letzte 30 Tage)
Marcin Wegrzynowski
Marcin Wegrzynowski am 5 Jan. 2016
Hi, I have some problems with generation of time depends signal in Simulink. I have one process, and when one of my variables gets an assumed value, I want to turn on another signal for example by 2 seconds. I know that simulink gives us a function like "Clock" or "Digital time" but these functions start counting time when tur simulation is started. I need some tool which will start to count time when my variable will have the assumed value.
Thanks for your help in advance Marcin

Antworten (1)

ashish ahir
ashish ahir am 6 Jan. 2016
Marcin, use counter inside triggered subsystem. triggered subsystem will be triggered when your variable will have assumed value. you can make this logic using if-else and logical compare block.
  1 Kommentar
Marcin Wegrzynowski
Marcin Wegrzynowski am 6 Jan. 2016
thank you very much :). Counter - it was the "key word". Thank you once more.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by