Corresponding Read/Write Blocks of a Data Store Memory
6 ビュー (過去 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!