How to copy the data in a excel file after simulation in simevents?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Mo Zhao
2017-4-17
编辑:Mo Zhao
2017-4-17
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!