how to get simulink stop time even if using code generation
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mitch Lautigar
il 21 Mag 2020
Commentato: Fangjun Jiang
il 22 Mag 2020
I am trying to generate a chirp signal that is dependant on the simulation stop time(currently is set to 1 second). I do have matlab programming in the simulation so I keep running into an issue with "code generation" that won't let me do it. i've tried get_param as well as a couple other different tricks to be met with little to no progress.
0 Commenti
Risposta accettata
Fangjun Jiang
il 21 Mag 2020
Not sure what you mean.
>> vdp
>> get_param('vdp','StopTime')
ans =
'20'
2 Commenti
Fangjun Jiang
il 22 Mag 2020
Yes. Imagine that after the code is generated and compiled and is running in a CPU, there would be no "model" and no "stop time".
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!