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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (3)

Sebastian Castro
Sebastian Castro il 2 Ott 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 il 3 Ott 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 Commento
Sebastian Castro
Sebastian Castro il 3 Ott 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!

Accedi per commentare.


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

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by