Renaming simulink mdl files
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jamie
le 26 Nov 2013
Modifié(e) : Andreas Goser
le 20 Juin 2016
When renaming simulink model files (mdl/slx), whether using 'save as' or renaming the file within windows explorer I recieve the following error:
"Error loading the initial state for model 'model'. Unable to find a matching block state corresponding to element 1 of signals structure array"
Reinstating the original file name, the model executes without issue. Any reason why the number states of the system might be seen to vary dependant on the model name?
The error appears to refer to an issue with the initial states of the model defined in the configuration parameters GUI (though I dont believe this to be the source of the problem). I have defined the initial states using the getstruct statment 'getstatestruct(operating_point)'.
To retain version control I have had to resort to copying each iteration of the design and dependant files to new folders. This is proving a real pain!
A 'fix' would be greatly appreciated!!
Many Thanks
0 commentaires
Réponse acceptée
Andreas Goser
le 2 Déc 2013
Modifié(e) : Andreas Goser
le 20 Juin 2016
It may also be related to configuration parameter settings:
- Open the Configuration Parameters -> Data Import/Export pane - Check the boxes with 'Time' and 'States', select the 'Format' option to 'Array'
It general, you issue might be release or model specific and thus contacting Technical Support may be the best for you.
2 commentaires
Andreas Goser
le 20 Juin 2016
Modifié(e) : Andreas Goser
le 20 Juin 2016
The link behind my note a above was
Which for some reason is not working anymore. I changed it to
www.mathworks.com/support/bugreports/340106
I personally also have issues with IE, but it workes in Chrome.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Model Verification 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!