Guidelines to port Simulink Code to specific Target (Custom Machine)
Show older comments
Hi,
I have a Matlab S-function in Simulink which contains a wide ensemble of functions from Java functions to system commands (e.g.). I am opening a udp socket on my code.
serversock = java.net.ServerSocket(port);
[status, result] = system([cmd ' &'],'-echo');
I would like to generate C code and an executable for a specific target (non-standard Computer Machine, e.g. no Windows, no Mac, etc).
I understand I would have to do some customization for this. Could you give me an overview of the steps that I need to follow for this?
I have read some of the TLC and the Simulink Coder documentation.
I think I need to do this:
1) Code a Block TLC file to inline the Matlab S-Function. Is this possible with the functions I implement?
2) Create a System Target File (STF) to customize the code generation to fit the machine that I need to use.
Am I on the right track? I also have the same functionality of the simulink block on a regular m.file. Would you recommend using other toolboxes like Matlab Coder, Embedded Coder for this?
Thanks in advanced.
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!