Data store memory data is not changed in simulink test assessment block
Show older comments
I use signal resolve to associate signal and global data defined in sldd like the snapshot below. And the signal is used in simulink test for verify criteria. This signal data has not been synchronized with the data in the model and has remained at 0.(The data in data inspector aligns with expectations).

I tried to replace signal resolve with output to a data store write block and the data is synchronized. Is this a limitation of using resolved data in simulink test or some configuration is wrong?
Answers (1)
The documentation on Data Objects explains that resolving a signal in a model to data objects, such as a Simulink.Signal object in the base workspace, model workspace, or an external data dictionary, ensures the signal in the model adopts the properties stored in the Simulink.Signal object. Data objects are utilized to define values, value ranges, data types, tunability, and other characteristics of signals, states, and block parameters. This indicates that data objects are not intended for storing and retrieving signal data from a model. In fact, multiple signals within a model can be resolved to the same data object, as shown below.

For more detailed information, the following documentation pages might be helpful:
- Data Objects - https://www.mathworks.com/help/simulink/ug/working-with-data-objects.html
- Symbol Resolution - https://www.mathworks.com/help/simulink/ug/resolving-symbols.html
- Signal Resolution - https://www.mathworks.com/help/simulink/gui/signal-resolution.html
Categories
Find more on Inputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!