How to copy the data in a excel file after simulation in simevents?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am running a simulation of a production system. I want to change the dispatching rule and for each of this I want to save in a excel file (or something similar) the cycle time value of the entities to evaluate the performance.
I have both the problem how to seve the data and how to calculate the cycle time.
thank you
0 commentaires
Réponse acceptée
Mo Zhao
le 17 Avr 2017
Modifié(e) : Mo Zhao
le 17 Avr 2017
Hi Paolo,
Is the cycle time value an attribute that you defined in the entity? If so, you can use the MATLAB event action to access the entity attribute and output to the MATLAB workspace. For example, you can connect the entity output to an Entity Server, and in the Entry event action, and write "Cycle = entity.cycle;" (where "cycle" is assumed to be the entity attribute you defined), and then you will have the variable Cycle in your MATLAB workspace. You can then write a MATLAB loop to simulate the model and output Cycle to a excel file in each iteration. Another way is to use the SimEvents Design Pattern "Extract attributes of entities as signals" and connect the output to a ToWorkspace block.
You can find the event action documentation in
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur SimEvents dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!