How to provide table vector as intergeneration times in Simulink?

2 Ansichten (letzte 30 Tage)
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?

Antworten (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.

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by