How to read Description of all mpt.signal of the Model Explorer

조회 수: 2 (최근 30일)
Mohan Mishra
Mohan Mishra 2019년 1월 10일
답변: Muthukumar Ganesan 2022년 8월 1일
I am trying to write a script to read the description of all signals.
Please suggest the functions available or provide any link through which i can start writing the script.
MPT Signal.PNG

답변 (1개)

Muthukumar Ganesan
Muthukumar Ganesan 2022년 8월 1일
Hi,
You can start with the following commands.
sflow=sfroot;
model = sflow.find('-isa', 'Stateflow.Chart');
DataArray = model.find('-isa','Stateflow.Data');
where DataArray lists all the data elements corresponding to the model. Description of the data can be accessed using
DataArray(1).Description; %Index into each element to get the description
Hope this helps. Thanks.

카테고리

Help CenterFile Exchange에서 Stateflow에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by