Page 1 of 1

Compiling Stateflow Charts

Posted: Tue May 05, 2009 7:46 pm
by tommyers
Hi,

I have a simulink model containing a stateflow chart, I also have Real Time Workshop and Real Time Workshop Embedded Coder. Could you tell me whether it is possible to compile the state flow chart as a switch case statement for the dsPIC, or such like? If it is possible could you tell me where I could find this procedure.

Many Thanks.

Regards,
Tom

Re: Compiling Stateflow Charts

Posted: Wed May 06, 2009 12:40 am
by LubinKerhuel
Hi Tom,

You will also need Stateflow Coder : http://www.mathworks.fr/products/sfcoder/
For compiling the stateflow model, just place it in a simulink model, and compile the simulink model.
Have a look on the many examples (and video) http://www.kerhuel.eu/wiki/Category:Example

Lubin