How to use global variable in MATLAB discrete-event system block (not MATLAB Function Blocks)?
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 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.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 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. 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 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. simulink, discreate event simulation MATLAB Answers — New Questions