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!