0

I need to know the various types of toolboxes available in simulink to convert simulink model into C code.

Is there any general steps to follow to convert the model into C? If there is any step, please do guide me.

Thanking you in advance for your valuable guidance.

1 Answer 1

2

Yes, the products are Simulink Coder, which requires MATLAB Coder, and is used for generating C/C++ code from Simulink models to be used for rapid prototyping, hardware-in-the loop testing, simulation acceleration or simply an executable to be run outside of MATLAB and Simulink.

If you want to deploy the generate code on an embedded platform, customize or optimise the way the code is generated, you also need Embedded Coder.

I suggest as a starting point, to watch the videos on the Simulink Coder web page. Be aware though that code generation is a rather complex topic, for advanced users, and the tools are expensive.

Sign up to request clarification or add additional context in comments.

3 Comments

Could I know the differences between Simulink Coder and Embedded Coder?
I have gone through the links which you have mentioned. But I could not know where to use these Simulink Coder blocks and Embedded Coder Blocks.
They are not "blocks" but tools that allow you to generate code. The videos explain how the basics of it work, but as I said, this is a fairly advanced topic to experienced users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.