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

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?

답변 (1개)

Altaïr
Altaïr 2025년 2월 17일
편집: Altaïr 2025년 2월 17일

0 개 추천

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:

카테고리

제품

릴리스

R2024b

질문:

2025년 2월 8일

편집:

2025년 2월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by