How to provide table vector as intergeneration times in Simulink?
조회 수: 2 (최근 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!