missing data in target object

4 ビュー (過去 30 日間)
SAnbaran
SAnbaran 2019 年 10 月 30 日
回答済み: SAnbaran 2019 年 11 月 6 日
Hi everyone, I ran an ICE-based car model in real-time and desktop. But the real-time figure obtained from target object has some part missing (before t=80).
The model created in Simulink/Simscape and used " plot(tg.TimeLog,tg.Outputlog) " to plot target signal log. Additionally, target scope configured as:
Scope Type:Target /
Scope Mode: Graphical redraw /
number of samples:1000 /
number of pre/post samples:0 /
Decimation:1 /
Trigger mode: FreeRun.
I tried to increase number of samples in target scope from 250 to 500, finally to1000. but it did not have any effects.
Do you know what causes this? and what's the solution?
On another note, PI controller has a constant offset. this is evident from desktop simulation plot. for instance, when 0 <t < 20. I tried to change the Kp and Ki values but did not succeed. I hope you can advise me on this,too.
Thank you.

採用された回答

SAnbaran
SAnbaran 2019 年 11 月 6 日
SOLVED.
To those who read this in future. I used 'outport block' to log data and solve this problem by increasing 'Signal logging data buffer size' by factor of 5. You can find this setting under Configuration Parameters>Code Generation>Simulink Real-Time Options. For more details visit https://www.mathworks.com/help/xpc/ug/log-signals-with-xpc-target-explorer.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModel Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by