I want to check this property with code in Simulink StateFlow. I found that there is no direct identifier. Is there any way to check this option? (Create output for monitoring

32 visualizzazioni (ultimi 30 giorni)
I want to check this property with code in Simulink StateFlow. I found that there is no direct identifier. Is there any way to check this option?
(Create output for monitoring:)

Risposte (1)

Divyajyoti Nayak
Divyajyoti Nayak circa 4 ore fa
Modificato: Divyajyoti Nayak circa 2 ore fa
To programmatically check the option “Create output for monitoring” in the Stateflow chart’s properties, you can make use of the “OutputMonitoringMode” property of the “Stateflow.Chart” object.
chart.OutputMonitoringMode = ChildActivity;
To access your Stateflow chart object, the “find” function can be used.
chartArray = find(sfroot,"-isa","Stateflow.Chart");
Here’s some documentation to help you out:
“OutputMonitoringMode”:
  1 Commento
Fangping
Fangping 33 minuti fa
I can take out this chart, but this attribute OutputMonitoringMode just sets the mode. What I'm thinking about is activating Create output for monitoring. You may need to set the OutputData property, but this property is read-only. Is there any way?

Accedi per commentare.

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by