Data store memory(DSM)
显示 更早的评论
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
采纳的回答
更多回答(2 个)
Nirmal Gunaseelan
2012-2-27
0 个投票
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 个评论
James
2012-2-27
Nirmal Gunaseelan
2012-2-27
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
2012-2-27
James
2012-2-27
James
2012-2-28
0 个投票
2 个评论
Nirmal Gunaseelan
2012-2-28
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
2012-2-28
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Plant Specification 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!