How to copy the data in a excel file after simulation in simevents?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Paolo Favero
el 7 de Abr. de 2017
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 comentarios
Respuesta aceptada
Mo Zhao
el 17 de Abr. de 2017
Editada: Mo Zhao
el 17 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre SimEvents en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!