How do I create a Stand Alone Application using Windows for a GUI that starts a Stateflow model?

2 Ansichten (letzte 30 Tage)
I want to compile a GUI that calls a Stateflow Simulation. With this, I want to create a windows stand alone application using a windows executable so it can be used outside of Matlab; meaning giving it to someone that does not own Matlab and they can still run it. I tried the DEPLOYTOOL but it only was able to execute the GUI and not the Stateflow Simulation associated with the GUI. For the DEPLOYTOOL I used this video, http://blogs.mathworks.com/pick/2007/12/12/advanced-matlab-compiling-a-gui/.
I looked online regarding doing this with Stateflow and came across building targets; simulation targets and real-time workshop targets. I am not sure if this is going to have to be associated with what I am trying to do. To give a general outline of my project: A GUI allows the user to pick a CSV data file to be simulated. A GUI allows the user to press a “Start Simulation” button. A Stateflow simulation is than started using the CSV data file selected. The Stateflow simulation than calls two plot functions.
Any guidance is greatly appreciated.
Thank you.

Akzeptierte Antwort

TAB
TAB am 18 Dez. 2012
Stateflow can not be opened standalone without Matlab. Stateflow runs under simulink environment and simulink runs under matlab environment.
If you want to integrate the behavior you gave implemented in stateflow, you can generated the code from it using Simulink Coder toolbox and integrate the generated code in your standalone code.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by