StateFlow symbol could resolve to multiple data?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm learning StateFlow in order to implement a braking algorithm using Simulink (2015b).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160908/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160909/image.png)
I configured the inputs using the "Explore" window:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160910/image.png)
When I try to start the simulation, I get the error "Symbol 'x_brk' could resolve to the data 'x_brk', or to the data 'x_brk' of the same name. Please rename one of these objects." As far as I can tell, though, x_brk is only defined as in input.
I also get the error "Error in port widths or dimensions. Invalid dimension has been specified for input 'x_brk'." This is confusing because I believe the inputs are configured to inherit their dimensions from Simulink (size: -1).
I'm sure I'm missing something big, being new to StateFlow. I'd appreciate insights on what's going on here.
Thanks, Toby.
1 commentaire
Ujwal Sontakke
le 14 Nov 2022
Hey, have you got the solution on the issue.
I am also facing similar error. Please let me know if you have solved this error.
Réponses (1)
Mark McBroom
le 19 Mar 2017
I am guessing that the duplicate symbol error is from the argument you are using for the MATLAB Function. Try changing the argument 'x_brk' to something else.
0 commentaires
Voir également
Catégories
En savoir plus sur Complex Logic 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!