output argument of a function in the source code generated by the Simulink coder
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Seongryeon Kim
am 2 Mai 2023
Bearbeitet: Adit Kirtani
am 18 Mai 2023
Is the output argument of a function in the source code generated by the Simulink coder always void and the output is only passed in the form of a global variable?
0 Kommentare
Akzeptierte Antwort
Adit Kirtani
am 18 Mai 2023
Bearbeitet: Adit Kirtani
am 18 Mai 2023
Hi,
From my understanding, you’re looking to see if every type of function block in Simulink is represented by a void function type and a global variable for output by Simulink Coder.
I’ve attached a handy link to the Simulink Coder documentation where you can see the different code templates for various function blocks, under the “Choose a Modelling Pattern” section.
As you can see, all of these follow the same pattern of having a void return type and they store their output in a global data type.
Embedded Coder does provide options to configure function interfaces for simpler integration of generated code with external code, which you may look at here:
I hope this helps,
Adit Kirtani.
0 Kommentare
Weitere Antworten (0)
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!