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

4 vues (au cours des 30 derniers jours)
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.)

Réponses (1)

Raj
Raj le 4 Avr 2024
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-

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by