Data and time dimensions are incompatible when running HIL

5 vues (au cours des 30 derniers jours)
Happyness
Happyness le 14 Mai 2024
Modifié(e) : Altaïr le 28 Mar 2025
I have the same question as Data and time dimensions are incompatible error message - MATLAB Answers - MATLAB Central (mathworks.cn). The difference is that when running HIL, the scope cannot display data, while the data inspector will report the error in a few minutes.This bug seriously affects its usage.Hope it can be resolved.

Réponses (1)

Altaïr
Altaïr le 28 Mar 2025
Modifié(e) : Altaïr le 28 Mar 2025
Hey there, @Happyness!
When I encountered this issue, it seemed to occur sporadically. Here are a few strategies that might help in addressing it:
To avoid the error, try performing a clean re-build by deleting artifacts like the 'slprj' and 'model_rtw_slrealtime' folders, as well as any .slxc files.
Running the simulation in Normal Mode, either from SLRT Explorer or the MATLAB command line, can also be effective.
Ensure that multiple simulation interfaces are not mixed. It's best to stick with one of the following interfaces at a time:
  • Model (External Mode)
  • App
  • SLRT Explorer
For example, avoid interacting with a real-time simulation from an App or SLRT Explorer if the simulation was started from the model in External Mode.
May these tips bring @Happyness!

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by