Set certain value of signal when it goes above threshold.
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, recently I have been trying to simulate this action in Simulink :
I have a velocity signal, I would like to make it control my valve in Simscape.
When value of velocity goes above set threshold, I want it to create a signal that has specific value and it last for specyfic peroid of time.
I have already tried several methods I have found on internet, but none of them seems working. I also have tried to make it by MATLAb function, but the only thing I have achived are detected peaks of signal.
Do you have any ideas how can I make it
0 件のコメント
回答 (1 件)
Fangjun Jiang
2021 年 4 月 14 日
Use the Relational Operator block to compare the signal against the threshhold value. The output is a true or false signal. Use this signal to trig (either edge or level) or enable an Enabled/Triggered subsystem. Inside the subsystem, provide the desiged signal. Some signal has the ability to specify duration.
2 件のコメント
Fangjun Jiang
2021 年 4 月 14 日
Not clear what is the problem based on your comments. Based on your original question, the solution is to let the trigger (the comparison aginst the threshold) determine the timing of the signal, and let your signal source inside the subsystem determine the "duration" of the signal.
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!