Corresponding Read/Write Blocks of a Data Store Memory
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to get a list of all Corresponding Read/Write Blcoks of a Data Store Memory.
And i am not getting how to the list.
I am getting all the Data Store Memories information using below lines...
mem_block_handle = find_system(strtok(fileName,'.'),'FindAll','On','FollowLinks','On','LookUnderMasks','all','BlockType','DataStoreMemory');
block_list_memblocks = '';
for i =1:length(mem_block_handle)
%block_list_memblocks{i,1} = get_param(mem_block_handle(i),'Corresponding Data Store Read/Write Blocks'); %% % Tried in this way
end
Can anyone help me.
0 个评论
回答(1 个)
Akshat Dalal
2025-3-2
编辑:Akshat Dalal
2025-3-2
Hi
You can utilize the 'find_system' API to find the Data store read/write blocks for any particular DSM block as shown below:
% Find all Data Store Read blocks associated with the Data Store
readBlocks = find_system(modelName, 'BlockType', 'DataStoreRead', 'DataStoreName', dataStoreName);
% Find all Data Store Write blocks associated with the Data Store
writeBlocks = find_system(modelName, 'BlockType', 'DataStoreWrite', 'DataStoreName', dataStoreName);
You can filter them by the 'DataStoreName' parameter which will only return the Data store read/write blocks associated with the DSM 'dataStoreName'.
Please find more information about the 'find_system' API here: https://www.mathworks.com/help/simulink/slref/find_system.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!