MATLAB: How to access stateflow data parameters from the command line in Stateflow 7.8 (R2011b)

stateflow

I want to use the different chart and other data parameters inside Stateflow using command line. How do I do this?

Best Answer

There exists a Stateflow API Application Programming Interface) for command line operations, please find the following documentation related to it:
Stateflow API
Quick Start for the Stateflow API
Also, note that using 'Stateflow.Data' within 'find' will give you access to all the parameters of Stateflow chart and their datatype. I am attaching an example to access the parameters and corresponding datatypes of the variables within a chart (in AccessStateflowData.m). I am using 'sf_car' demo model for demonstrating this.