how to generate an infinitely running code in simulink embedded coder?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how to generate an infinitely running code in simulink embedded coder like how we use in legacy code
example:
void main(){
for(;;){
}
}
I have used idle task block but it has some limitations like some blocks like can transmit in c2000 micro controller blockset takes a auto sample time of 0.2 sec but simulink shows an error if time based blocks are included in idle task block function
0 Kommentare
Antworten (1)
Michael
am 7 Apr. 2025
Normally you only have to set the "Stop time" in the Configuration Parameters --> Solver option or directly in the model to "inf". Then starting code generation.
3 Kommentare
Siehe auch
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!