Code generation of TCP/IP block
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I am using Simulink to simualte turning on/off leds on a hardware board. I am using the TCP/IP block provided by instrument control toolbox to communicate data between the Simulink block and the board. So my Simulink model is the client. I want to generate C code of the model but the generated code doesn't include the TCP/IP block. Do you guys have any ideas why I got this problem? Do you know how can I implement my own TCP/IP block that might be generated to c code? Thanks for helping.
0 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 1 Feb. 2013
The TCP/IP block is probably not supported for code-generation, which is why you don't see it in the generated code (do you see any warning in the MATLAB command window about it?)
If you know how to implement the TCP/IP communication in C code, you can use the Legacy Code Tool to generate an S-function and TLC-file (which is needed for code-generation) that will act as your custom block.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Supported Hardware finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!