How to pass value to local scope Data store memory block without making it global
3 views (last 30 days)
Show older comments
Hi,
I am trying to pass value to Data store read block from one part of model to another. But since Data store memory block is in local scope (defined in same space as read block), I am not able to do that.
Due to some constraints, I do not want to make the scope of memory block global. Is there any other way to resolve this issue?
0 Comments
Answers (1)
Fangjun Jiang
on 8 Jul 2022
Edited: Fangjun Jiang
on 8 Jul 2022
A local data store can still cover a large portion of a model. It is like a tree. If you place the Data Store Memory block at a branch, it can be read and write anywhere on that branch, including sub-branch and leaves. You just need to figure out where are the needed read and write access and then decide the proper common branch.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!