how to generate an infinitely running code in simulink embedded coder?
Afficher commentaires plus anciens
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
Réponses (1)
Michael
le 7 Avr 2025
0 votes
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 commentaires
Nallapuri Nirali
le 8 Avr 2025
Michael
le 8 Avr 2025
And after what time does the code execution stop?
Nallapuri Nirali
le 17 Avr 2025
Catégories
En savoir plus sur Deployment, Integration, and Supported Hardware dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!