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

3 次查看(过去 30 天)
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 个评论
Sebastian Castro
Sebastian Castro 2014-10-3
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 个评论
Jonathan
Jonathan 2014-12-10
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.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by