How to provide table vector as intergeneration times in Simulink?
4 次查看(过去 30 天)
显示 更早的评论
I am simulating waiting times in Simulink based on real data (arrival, waiting and service time) stored in an Excel spreadsheet. This excel file is read into a base workspace table via model callback function InitFcn. The entity generator of the Simulink model gets the entity intergeneration times via a Simulink function which contains a repeating sequence stair block providing the according base workspace table vector as 'Vector of output values'. This works so far but the vector values obviously get repeated. I fail to find an alternative block or function with same functionality but without repeating.
Any ideas?
0 个评论
回答(1 个)
Emmanouil Tzorakoleftherakis
2018-1-8
Hi Alex,
You could implement the desired functionality in a MATLAB Fcn block in MATLAB, or alternatively you could implement a counter in Simulink and use the Selector block to output only one element from the "Vector of output values" at each time step.
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!