When using 'c2000 microblockset', the values ​​of the model are delayed in reception. How can this be resolved?

3 ビュー (過去 30 日間)
동빈 김
동빈 김 2024 年 3 月 26 日
回答済み: Raj 2024 年 4 月 4 日
I have currently implemented as follows, using F28379D. In order to view the data in real-time, I used 'Monitor & Tune' to confirm the results via a scope. However, as shown in the second picture, the measurements start from 4 seconds instead of 0 seconds. How can I view the results from 0 seconds?
(I separately defined the sampling time as a variable, and used a value of Tsamp = 0.0001.)

回答 (1 件)

Raj
Raj 2024 年 4 月 4 日
To ensure your Simulation starts from time 0 seconds instead of 4 seconds, you need to set the Simulaton start time appropiately. Follow the following steps for doing so-
  1. Under the 'Modelling' bar, click on the 'Model Settings' in the toolstrip.
  2. Under the 'Configuration Paramters' dialog box, navigate to Solver>Simulation time.
  3. Set the Simulation Start time to 0.0 seconds. Apply the changes and re-run the model
I hope following the above mentioned steps helps to resolve the issue and you are able to procced further!
You can additionally refer to the following documentation link for better understanding-

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by