how to interface c-code generated by simulink coder with external hardware such as microcontroller
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hi, please suggest procedure to interface c-code generated by the simulink coder with external hardware. i mean simulink coder generates c-code how i could match that code to the microcontroller ports. to what vriables i can assgin input signal ang output signal.
Thanks & Regards
0 Kommentare
Antworten (1)
Kaustubha Govind
am 17 Mai 2013
Unless you can find a custom Simulink driver blocks library for your hardware (see Hardware Support), you will need to figure out the C-driver code for the hardware and create a Simulink block using the Legacy Code Tool. In addition, you might also need to create some Custom Target infrastructure in order for Simulink to apply a custom tool-chain that is used for your custom hardware, etc.
Alternatively, if you need like you cannot invest in this process, you can manually integrate the driver code into the code generated by Simulink.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Simulink Coder 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!