Data store memory data is not changed in simulink test assessment block

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

Altaïr
Altaïr on 17 Feb 2025
Edited: Altaïr on 17 Feb 2025
Hey @Yuan,
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:

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!