Create and fill an array in simulink
Afficher commentaires plus anciens
Hello,
I've got a question about Simulink. I got a signal in Simulink which changes every 1 ms.
Now, while the simulation is running, I want to save this signal every 1 ms for 10 ms when a trigger arrives. So afterwards there should be an array filled with 10 values.
I dont want to use a vector in the workspace, because I will eventually compile this simulink-model to a Electronic Control Unit through DSpace TargetLink. That's the reason why I want to have everything done in Simulink.
Anyone knows a method/ or block for simulink which can do this datalogging functionality?
Thanks for your help in advance
Réponse acceptée
Plus de réponses (2)
Umut SEN
le 2 Fév 2018
2 votes
Hi!
I came accross this page while i was looking for a solution for more or less the same problem as you did.
I need to store data in Simulink and I cannot use matlab function block or tapped delay block because of some model standards.
Is there any other way I can store data in an array for processing?
Thanks in advance,
Umut
viyils Sangregorio
le 27 Oct 2021
0 votes
Iam coming here with the same question....Until 2021 do we have any solution for that ?
Catégories
En savoir plus sur Schedule Model Components dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!