Simulink - How to store a scalar in a queue with simulation time?

I am trying to make a FIFO queue with time-stamps (simulation time).
Queue would have a max length.
I tried 'to workspace' and 'from workspace' combination. it doesn't work.
Intial values could be zero or dynamics size array till maxlength.

댓글 수: 2

Can you explain what you are trying to achieve? What are the inputs/outputs (type, dimension ...) of your system?
"To workspace" will recorde the signal during simulation. You can set it to record signals as timeseries (data + simulation time). The data is only accessible at the end of the simulation in the workspace.
Thanks MB for your consideration.
I will fed this history to a MATLAB Fn block, which needs this previous time history during the simulation. Data type is double and dimension is in the figure. (N, say 50). I require time history during simulation.

댓글을 달려면 로그인하십시오.

답변 (1개)

JAI PRAKASH
JAI PRAKASH 2021년 2월 23일
편집: JAI PRAKASH 2021년 2월 23일

0 개 추천

Here I attach the solution, which my collegue found.

카테고리

도움말 센터File Exchange에서 General Applications에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 2월 22일

편집:

2021년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by