Documentation Center

  • Trial Software
  • Product Updates

Installing Stateflow Software

Installation Instructions

Stateflow® software runs on Windows® and UNIX® operating systems. Your MATLAB® installation documentation provides all the information you need to install Stateflow software. Before installing the product, you must obtain and activate a license (see instructions in your MATLAB installation documentation) and install prerequisite software (see Prerequisite Software for a complete list).

Prerequisite Software

Before installing Stateflow software, you need the following products:

  • MATLAB

  • Simulink®

  • C or C++ compiler supported by the MATLAB technical computing environment

    The compiler is required for compiling code generated by Stateflow software for simulation. The 32-bit Windows version of the Stateflow product comes with a C compiler (lcc.exe) and a make utility (lccmake). Both tools are installed in the folder matlabroot\sys\lcc. If you do not configure MATLAB to use any other compiler on Windows operating systems, Stateflow software uses lcc to build targets.

    The 64–bit Windows version of the Stateflow product comes with a default C compiler, LCC-win64. LCC-win64 is used for simulation and acceleration. LCC-win64 is only used when another compiler has not been configured in MATLAB.

      Note:   The LCC-win64 compiler is not available as a general compiler for use with the command line MEX in MATLAB. It is a C compiler only, and cannot be used for SIL/PIL modes.

    For platforms other than Microsoft® Windows or to install a different compiler, see Setting Up Your Own Target Compiler.

Product Dependencies

For information about product dependencies and requirements, see www.mathworks.com/products/stateflow/requirements.html.

Setting Up Your Own Target Compiler

If you have multiple MATLAB supported compilers on your system, MATLAB selects one as your default. You can change the default compiler by calling the mex –setup command, and following the directions.

Using Stateflow Software on a Laptop Computer

If you plan to run the Microsoft Windows version of the Stateflow product on a laptop computer, you should configure the Windows color palette to use more than 256 colors. Otherwise, you may experience unacceptably slow performance.

To set the Windows graphics palette:

  1. Click the right mouse button on the Windows desktop to display the desktop menu.

  2. Select Properties from the desktop menu to display the Windows Display Properties dialog box.

  3. Select the Settings panel on the Display Properties dialog box.

  4. Choose a setting that is more than 256 colors and click OK.

Was this topic helpful?