フィルターのクリア

How do I get the elements of the bus inside a variable from the data dictionary?

14 ビュー (過去 30 日間)
Sumeet Biswas
Sumeet Biswas 2019 年 6 月 6 日
回答済み: Donn Shull 2019 年 7 月 27 日
Hi,
I am having buses in the data dictionary I want to fetch the elements inside the bus.
How do I get the Element.
I have tried
allEntries = find(dd_SectObj, '-value', '-class', 'Simulink.Bus');
%% find all the buses.
foundOutIdsEntries = find(allEntries, '-regexp', 'Name', 'SLMS_BUS_out_ids_*')
%% check for all Output buses.
le = length(foundOutIdsEntries);
for j = 1 : le
abc = foundInEntries(j).Value;
end
How do I get those elements?
  1 件のコメント
Sumeet Biswas
Sumeet Biswas 2019 年 6 月 6 日
** correction in code
for j = 1 : le
abc = foundOutIdsEntries(j).Value;
end

サインインしてコメントする。

回答 (1 件)

Donn Shull
Donn Shull 2019 年 7 月 27 日
Insted of Value you should use getValue ie:
for j = 1 : le
abc = foundOutIdsEntries(j).getValue;
% place code dealing with Entries here ie:
% entryList = abc.Entries
end

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by