How can I use Data Store Read for global data stored in a Simulink Data Dictionary?

I am having issues getting Data Store Read to see a Simulink.signal defined in a linked data dictionary. It works fine using the base workspace, but after migrating data to the dictionary, and linking to the dictionary, it no longer does. Is there some trick I may be missing?

답변 (3개)

Sebastian Castro
Sebastian Castro 2014년 10월 2일
Hi Jonathan,
I just tried this out in R2014a and it worked fine for me. Maybe take a look at the attached files and see if this works on your end too?
Jonathan
Jonathan 2014년 10월 3일
Thanks for the response Sebastian.
Your example compiles and works fine, but strangely enough, trying to add a new data store read or write does not have the option to select mysig (Simulink.signal). See attached image.
I did find that typing the exact signal/element name into the data store read or write block does resolve to the signal in the data store however. Using this approach is going to be somewhat of a nuisance considering how many global signals I am addressing. Possibly just a bug.
Thanks again for your help.

댓글 수: 1

Wow! I guess I didn't notice this because I either didn't use the drop-down (just typed it in) or migrated the model to a data dictionary after I'd set everything up.
I'll submit this to our developers to see what they think. Thanks!

댓글을 달려면 로그인하십시오.

Matthew Manthey
Matthew Manthey 2014년 12월 4일
Was there any feedback on this? Using R2014a, I recently replicated this issue.

댓글 수: 1

Hi Matthew,
I have not received feedback and it seems to have not been fixed in 2014b. I hope it has been added to their bug list for correction at some point. In the meantime you can get around it by typing the exact name of the Simulink signal from the data dictionary.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

질문:

2014년 9월 26일

댓글:

2014년 12월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by