Run simulation with Arduino IO programmatically
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Using
set_param('model', 'SimulationMode', 'external')
set_param('model', 'SimulationCommand', 'Start')
a simulation with Arduino I/O can be run from an M-script.
Can the same be done in the simpler "Connected IO" mode?
I was searching a SimulationMode like 'connected_io', but it doesn't seem to exist.
Or does it?
0 Commenti
Risposte (1)
Aman Banthia
il 4 Lug 2022
Hi Manfred, I understand you are trying to call "Connected IO" mode for simulation programmatically, you can use the following code to do that, it may not show any visible changes when MATLAB opens up but it should run if the Simulink Model is run programmatically too.
set_param('model', 'SimulationMode', 'external')
set_param('model', 'SimulationCommand', 'Start')
set_param('model','ConnectedIO','on')
Vedere anche
Categorie
Scopri di più su Arduino Hardware in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!