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

2 Ansichten (letzte 30 Tage)
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?

Antworten (3)

Sebastian Castro
Sebastian Castro am 2 Okt. 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 am 3 Okt. 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 Kommentar
Sebastian Castro
Sebastian Castro am 3 Okt. 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!

Melden Sie sich an, um zu kommentieren.


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

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by