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

3 views (last 30 days)
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?

Answers (3)

Sebastian Castro
Sebastian Castro on 2 Oct 2014
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 on 3 Oct 2014
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 Comment
Sebastian Castro
Sebastian Castro on 3 Oct 2014
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!

Sign in to comment.


Matthew Manthey
Matthew Manthey on 4 Dec 2014
Was there any feedback on this? Using R2014a, I recently replicated this issue.
  1 Comment
Jonathan
Jonathan on 10 Dec 2014
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!