How to provide table vector as intergeneration times in Simulink?
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Emmanouil Tzorakoleftherakis
on 8 Jan 2018
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 Comments
See Also
Categories
Find more on Discrete-Event Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!