Access Stateflow Debugging options programmatically

2 Ansichten (letzte 30 Tage)
Petru-Cornel
Petru-Cornel am 16 Mär. 2023
Kommentiert: Petru-Cornel am 31 Mär. 2023
Hello,
It's possible to access the Debugging options for Stateflow by programming?
I want to create a custom script to check if these options are checked or not.

Antworten (1)

Sai Sumanth Korthiwada
Sai Sumanth Korthiwada am 31 Mär. 2023
Hi Petru-Cornel,
I understand that you want to access Stateflow debuging options programatically.
It is possible to access some of the debugging options programatically. To begin with, you can go through the following documentations to understand about how to use Stateflow debuging options programatically:
Hope this helps!
  1 Kommentar
Petru-Cornel
Petru-Cornel am 31 Mär. 2023
Hello,
Thank you for your feedback!
The option can be accesed with the following commands:
hsf=sfroot;
m = hsf.find('-isa', 'Stateflow.Machine','Name',bdroot);
get(m.Debug.RunTimeCheck,'CycleDetection');
get(m.Debug.RunTimeCheck,'StateInconsistencies');
get(m.Debug.RunTimeCheck,'DataRangeChecks');
get(m.Debug.RunTimeCheck,'TransitionConflicts');

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Stateflow finden Sie in Help Center und File Exchange

Produkte


Version

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by