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!