Simulink - How to store a scalar in a queue with simulation time?
2 views (last 30 days)
Show older comments
I am trying to make a FIFO queue with time-stamps (simulation time).
Queue would have a max length.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/527659/image.jpeg)
I tried 'to workspace' and 'from workspace' combination. it doesn't work.
Intial values could be zero or dynamics size array till maxlength.
2 Comments
M.B
on 22 Feb 2021
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.
Answers (1)
See Also
Categories
Find more on Programmatic Model Editing 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!