Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Arduino Run on Target Hardware + Stateflow

Asked by Sebastian Holmqvist on 11 Sep 2012

Hi!

I'm trying to setup Arduino through Simulink on R2012a and use Stateflow. But when I try to deploy (Run on Target) it complains about Generating code from Stateflow blocks requires a valid Simulink Coder license.

Any ideas? I'm on Student License.

1 Comment

Adrian Dronca

Adrian Dronca (view profile)

on 11 Sep 2012

Well you don't have the license for code generation :)

You can type in command line license('inuse') to see what licenses you are using.

2 Answers

Accepted answer

This is a bug in R2012a release. Please use the solution given in the bug report # 830298. Here is the link to the report.

1 Comment

Sebastian Holmqvist on 13 Sep 2012

This fixed it! Thanks!

Answer by Kaustubha Govind

Kaustubha Govind (view profile)

on 11 Sep 2012

Does "Run on target" work on a model without any Stateflow blocks? If yes, it appears that to be able to use Stateflow with "Run on target" you need to get an additional Simulink Coder license.

0 Comments

Kaustubha Govind

Kaustubha Govind (view profile)

Contact us