Real time workshop - simulation duration
古いコメントを表示
I would like to ask you a specific question and I would appreciate any help. I m trying to run a real time simulation using a target pc and the simulink encoder (RTW). Although I set inf at the end time, the simulation stops after ~23 sec (fs=500Hz and duration 10000 steps). Increasing the sampling frequency the simulation ends after one period (ie 5000Hz).
Does anybody know why does this happen? I would expect 20sec and 2 sec respectively, as the duration indicates. And if I increased to 100000 steps I would expect even longer simulation time; however nothing changes.
Thank you
1 件のコメント
Azzi Abdelmalek
2013 年 8 月 26 日
Are you using Real Time Windows Target?
回答 (1 件)
Azzi Abdelmalek
2013 年 8 月 26 日
0 投票
When you work with Real Time Windows Target, your operating system will allow to your Matlab application the highest priority, but depending on your pc performances, and your sample frequency, sometimes your calculations take more then your sample time, and after n repetition of this problem (corresponding to maximum ticks missed) your code stops
3 件のコメント
Bertz Tourgoutian
2013 年 8 月 26 日
Azzi Abdelmalek
2013 年 8 月 26 日
Are you using two PC with real time windows target? How?
Are you running your model in normal mode, if yes, normally 500 Hz is allowed? to improve the performance you can run it in external mode, but you need a Simulink coder.
Bertz Tourgoutian
2013 年 8 月 27 日
カテゴリ
ヘルプ センター および File Exchange で Multicore Processor Targets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!