Data store memory(DSM)
Mostrar comentarios más antiguos
Hello
I am using Data store memory block in my simulink model to initialize a variable(array) to use in a matlab function block.Its a big model with tight tolerances. When I run I see that the DSM block looks into the full array(variable is size 50) at every time step so basically the simulation is EXTREMELY SLOW. How can I get rid of this.
Thank you
James
Respuesta aceptada
Más respuestas (2)
Nirmal Gunaseelan
el 27 de Feb. de 2012
0 votos
Hi James,
Could you give more details on what blocks are being used with the DSM block? Are you using a Data Store Write block as well?
Is the problem that the DSM block is accessing at every time step, or is it that you want only certain parts to be accessed? Have you tried Element wise assignment/selection?
-Nirmal
4 comentarios
James
el 27 de Feb. de 2012
Nirmal Gunaseelan
el 27 de Feb. de 2012
Could you also post the error message here? I'm wondering if the message you're getting is about the DSM blocks not being in sync (read before write) or actually about DSM initializing many times.
As I understand, you are using DSM to initialize a chunk of memory and after that, that array is used in a MATLAB Fcn block. And you are suspecting that the DSM block is accessing the memory again (initializing again?) or the Data Store Read/Write block is accessing at every time step? (this seems normal to me).
James
el 27 de Feb. de 2012
James
el 27 de Feb. de 2012
James
el 28 de Feb. de 2012
0 votos
2 comentarios
Nirmal Gunaseelan
el 28 de Feb. de 2012
Hi James,
I wanted to try out other ways of achieving your functionality without using shiftu/if conditions. I am not sure if we are preventing full access by using those lines. I'll get back to you.
-Nirmal
James
el 28 de Feb. de 2012
Categorías
Más información sobre Linear Plant Specification en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!