Shared simulation shows different results
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I need to work on an efficiency simulation in MATLAB Simulink which is shared between me and my colleagues via git.
My problem: The simulation shows different results (deviation factor x10) if run on my computer than on my colleagues’ and the simulation time varies, too.
Additional Information:
- I run the exact same version of MATLAB, Simulink and all the Toolboxes my colleagues have.
- We have narrowed the problem down to one variable that does not change at all (even though it should), and the subsystems related to that variable. But the model and the input parameters are (as far as we could see) the exact same as my colleagues’.
- We also shared the simulation via folder share (copy paste) to see if there was a problem with git, but the results still differed in the same way and only on my computer.
- We checked if the decimal separator is set differently on our computers, but it is the same. (Tested in Excel)
0 commentaires
Réponses (1)
Joel Van Sickel
le 2 Nov 2020
Hello Alexandra,
the easiest explanation for this would be if you are using library blocks and somehow one of you have different libraries, however, I don't think that is your issue in this case. Given your debugging, it sounds like there is a variable that should be changing. When you say variable, do you mean Simulink signal value, or are you writing to the matlab workspace from your simulink model? Is this variable a mask parameter for those subsystems or something in the model workspace? Also, are you using model references? It is possible that something isn't getting updated. You can delete the slprj folder and try rebuilding the model as something easy to check. You could also try deleting all the .slxc files just in case. Can your provide examples of the particalar variable that isn't changing?
Regards,
Joel
Voir également
Catégories
En savoir plus sur Component-Based Modeling dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!