How to use global variable in MATLAB discrete-event system block (not MATLAB Function Blocks)?
36 次查看(过去 30 天)
显示 更早的评论
I want to use global variable in a way like Resource Scheduling Using MATLAB Discrete-Event System and Data Store Memory Blocks. Like the following: After defining the parameter in a Data Store Memory block and declare the corresponding parameter in a MATLAB Discrete-Event System block, that block can access the value. But I can't implement this feature in my project. I have looked up a lot of information, but none of it has helped. Please help me solve this problem. Thanks!
![The data store memory can relate to the MATLAB Discrete-Event System block](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1748549/The%20data%20store%20memory%20can%20relate%20to%20the%20MATLAB%20Discrete-Event%20System%20block.png)
The information from the diagnostic viewer is:
Warning:System object ignores the global variable 'BoardDataCollectionProcessBoxDatum1' added during 'DatumEntry' execution. The global variable is either not declared in 'DatumEntry' or is declared while using the MATLAB debugger.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classical Control Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!