pass struct of variables to Simulink via gui
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Fabian H.
am 15 Mär. 2014
Kommentiert: Fabian H.
am 14 Apr. 2014
Hi guys,
i try to send/pass a properties file which i create in a gui to my Simulink model or at least show it in the workspace so Simulink can catch the variables. The problem is when i execute this:
load('test.mat')
open_system('RakeGAIN16QAM.mdl')
set_param('RakeGAIN16QAM','SimulationCommand','start')
in my command window its fine if i execute this in my callback of the gui i get a lot of errors
function pbuttonStart_Callback(hObject, eventdata, handles)
load('test.mat')
open_system('RakeGAIN16QAM.mdl');
set_param('RakeGAIN16QAM','SimulationCommand','start');
Anybody got an idea, its really frustrating to me, it feels like its not possible to do so.
Thanks F. Hof
1 Kommentar
Akzeptierte Antwort
Azzi Abdelmalek
am 15 Mär. 2014
Bearbeitet: Azzi Abdelmalek
am 15 Mär. 2014
function pbuttonStart_Callback(hObject, eventdata, handles)
open_system('RakeGAIN16QAM.mdl');
set_param('RakeGAIN16QAM','initFcn','load test')
set_param('RakeGAIN16QAM','SimulationCommand','start');
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!