From: John on 29 Mar 2010 00:38 hi, I would like to know how to change simulink block parameters, such as the 'Value' parameter of a constant block during execution through a GUI. I'm not currently using real-time simulatio yet so it is just a original simulink model. I have tried using the set_param function, however, it give me the following error: ??? Error using ==> Trim_GUI>tbAutoTrim_Callback at 264 Parameter(s) of 'SIMULATOR_JohnEdit_v1/States Override/OVERRIDE STATES/V' cannot be changed during model execution. Error in ==> gui_mainfcn at 96 feval(varargin{:}); Error in ==> Trim_GUI at 43 gui_mainfcn(gui_State, varargin{:}); Error in ==> @(hObject,eventdata)Trim_GUI('tbAutoTrim_Callback',hObject,eventdata,guidata(hObject)) I am using Matlab 2008b. I have realised that set_param works when i'm using matlab 2009b. However as I am doing this for university and their are only running 2008b i will need to get it working in 2008b. regards, John
|
Pages: 1 Prev: new to pole-zero plot, zplane Next: Acquire data from a Digital Table |