Include timeseries data from workspace in Simulink and activate them by trigger during simulation
3 ビュー (過去 30 日間)
古いコメントを表示
Martin Griese
2017 年 7 月 24 日
回答済み: Abhi Sundararaman
2017 年 7 月 26 日
Hello,
I want to include some timeseries data (which always starts at t=0) from my workspace into simulink. By a specific trigger, the data shall be evaluated during simulation. The data shall be start at t=0 even when the simulation time is not equal to zero. I tried this with a look-up table, but due to a variable step solver the results are falsified. Are there other solutions for including such data?
0 件のコメント
採用された回答
Abhi Sundararaman
2017 年 7 月 26 日
In general, timeseries data must go hand-in-hand with the current time of the simulation. So unfortunately, having the data evaluated at t = 0 even when the simulation time is not 0 would not be possible directly.
One workaround would be to change the format of the data. Using multiple vectors/arrays instead of a timeseries would probably better.
For example, you could put the timeseries data into vectors, and then use constant blocks that reference a specific index of the array that changes with respect to time.
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!