Which outport of stateflow block will provide the proper output data?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dark_Knight
el 30 de Ag. de 2023
Respondida: Jerbin J
el 15 de Sept. de 2023
Using runtime object I found that for "sldemo_autotrans" model there are four OutputPorts.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1467826/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1467826/image.png)
But the correct output is obtained in the OutputPort(2).
Similarly,for "sldemo_fuelsys", model there are ten OutputPorts,the correct output is obtained in OutputPort(4).![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1467831/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1467831/image.png)
Is there any provision in MATLAB to find the proper OutputPorts of a stateflow chart which would provide the exact answer as of stateflow chart?Because OutputPorts other than 2 and 4 in the above cases are providing answers but are not the same as of stateflow output which I verified using signal logging.
0 comentarios
Respuesta aceptada
Jerbin J
el 15 de Sept. de 2023
open_system(modelName);
sf=sfroot;
chart=sf.find('-isa','Stateflow.Chart');
data=Stateflow.Data(ch);
data.Scope='Output';
% Port which provides correct output data
reqOpPort = data.Port
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Complex Logic en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!