How to debug the for iterator subsystem in Simulink

8 visualizzazioni (ultimi 30 giorni)
원준
원준 il 30 Ott 2023
Commentato: 원준 il 3 Nov 2023
I am modeling the code and am trying to make the for statement in Matlab a block. However, even if you scope the signal inside the for iterator in Simulink, it only shows the result after the for statement has completed, and the processes are not captured in the scope. Could anyone tell me how to debug the iterator internal system?

Risposte (1)

Mann Baidi
Mann Baidi il 30 Ott 2023
Modificato: Mann Baidi il 31 Ott 2023
Hi,
I understand that you would like to debug inside the for loop in Simulink.
You can use the “dataset logging” format. You can do this by updating the format as “dataset” in the “Data Import/Export” tab of the Configuration Parameters' window.
You can open the Configuration Parameter window by clicking on Modelling->Modelling Settings->Modelling Settings. Alternatively, you can press Ctrl+E for Configuration Parameters window.
Hope this helps in resolving you query!

Categorie

Scopri di più su Prepare Model Inputs and Outputs in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by