In a Simulink model, Check at simulation time 't' (eg. @t=3sec) what is the value of a signal (signal is from signal builder).
11 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have a signal (eg: sine wave) from signal builder block. When I run the model, I need to check at simulation time 't' (eg. @t=3sec) what is the value of that signal. Based on that value I'll be doing some logic. How can I achieve this?
0 件のコメント
回答 (1 件)
Astik Sachan
2017 年 5 月 26 日
編集済み: Astik Sachan
2017 年 5 月 30 日
It gives current time stamp as output.
Please refer Sample Model "Clock.png" attached below!
2 件のコメント
Astik Sachan
2017 年 5 月 30 日
編集済み: Astik Sachan
2017 年 5 月 30 日
You can sample the value at that time stamp with the help of a Clock block and trigger subsystem.
参考
カテゴリ
Help Center および File Exchange で Prepare Model Inputs and Outputs についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!