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?

回答(1 个)

Emmanouil Tzorakoleftherakis
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.

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by