Global variable management?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all, I just recently installed Simulink and trykng to model motor controll.
Strangely , the tutorial I am watching, in the case of a Reluctance Machine, swapped out the "default initial values" and asked the user to hardcode "Ld and Lq." Then a red box appears around the machine.
Same thing happened with my battery when I plug in "Vnom" and samething with Torqe Gain/ Estimation blocks Any suggestions?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/880925/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/880930/image.jpeg)
2 Commenti
Steven Lord
il 1 Feb 2022
Could you please post a link to the tutorial you're following so we can see the context in which the presenter is using this model?
Risposte (1)
Pravarthana P
il 17 Feb 2022
Hi Evan, from your block diagram and query it can be understood that you are getting this warning signal around the block diagram. The reason for this may be because of some data dependency as you are defining the variables in the block parameters.
You can try defining and loading these variables in MATLAB workspace as a global variable before using them in SIMULINK block.
Hope this prevents the warning red line around the blocks.
Using the following link you may understand how to access base workspace variable from any Simulink block.
0 Commenti
Vedere anche
Categorie
Scopri di più su Arduino Hardware in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!