Info
此问题已关闭。 请重新打开它进行编辑或回答。
Local variable created as global in code.
3 次查看(过去 30 天)
显示 更早的评论
Hello,
In my model , I have created one local variable countA but in code it is generated as global.What configuration setting i need to do or what changes I need to do in my model. Accel Count is 4/2/1 depending upon the input.So every 5 ms I am checking the CountA and incrementing if it not equal to AccelCount.Once it is equal it will call the event and set to 0.
In configuration settings,I have tried all the values of " Optimize global data access".
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276048/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/276049/image.jpeg)
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!