Using a "global" variable in Simevents
Show older comments
I am returning to Matlab and Simevents after a long time away and much has changed. Two questions:
- I am building a simple manufacturing model using Simevents. I am using entity-specific attributes. I addition I would like some Event Actions to be able to access what I'm calling (possibly wrongly) global variables. i.e. multiple blocks can access the same variable. This might be a counter for a particular type of product for example. Could someone please point me in the right direction?
- Possibly related to above how do I access simulation time within the blocks?
Many thanks for your help
Accepted Answer
More Answers (0)
Categories
Find more on Discrete-Event Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!