how can I run a script written in the editor while running a simulation of a simulink model that depends on that script?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sara authafa
il 10 Ott 2016
Commentato: sara authafa
il 11 Ott 2016
I have a simulink model that requires values from the results of running a command editor,can I run simulink and the editor in the same time, or can I have a subsystem in my simulink model that runs those instructions in the same time? is there a block in matlab that can have a matlab m. file that can be run in simulink?
0 Commenti
Risposta accettata
Swarooph
il 10 Ott 2016
Are the scripts run ONCE before every simulation? If yes, you can call them in model callback functions. Refer to the documentation here.
If they need to be run at EVERY STEP of the simulation, you can use a MATLAB function block. Note that, this block has its limitation in the MATLAB functions it can call. Refer to the documentation here.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Environment Customization 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!