really need help here. i am sure its simple please someone help.
Code for pushbutton:
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set_param('mymodel','lock','edit1');
lock is the parameter in mymodel i want to change. edit1 is the the text field in my GUI.
ERROR:
??? Error using ==> GUI>pushbutton1_Callback at 104
block_diagram does not have a parameter named 'lock'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> GUI at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)GUI('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
I have set the path correct and the parameter is a constant block called 'lock' in mymodel.
what is the problem
Th
|
|
0
|
|
|
|
Reply
|
luke
|
3/19/2010 12:38:04 AM |
|
Dear Luke!
You did not specify where the problem occurs exactly.
Please try this:
dbstop if all error
Then the debugger stops when a problem occures and you can inspect the variables in the command window to find the problem -- and hopefully its solution.
Kind regards, Jan
|
|
0
|
|
|
|
Reply
|
Jan
|
3/19/2010 5:39:04 PM
|
|
"luke stone" <ifu-uk@hotmail.com> wrote in message <hnuh1c$bhc$1@fred.mathworks.com>...
> really need help here. i am sure its simple please someone help.
>
> Code for pushbutton:
>
> function edit1_Callback(hObject, eventdata, handles)
> % hObject handle to edit1 (see GCBO)
> % eventdata reserved - to be defined in a future version of MATLAB
> % handles structure with handles and user data (see GUIDATA)
>
> % Hints: get(hObject,'String') returns contents of edit1 as text
> % str2double(get(hObject,'String')) returns contents of edit1 as a double
>
>
> % --- Executes on button press in pushbutton1.
> function pushbutton1_Callback(hObject, eventdata, handles)
> % hObject handle to pushbutton1 (see GCBO)
> % eventdata reserved - to be defined in a future version of MATLAB
> % handles structure with handles and user data (see GUIDATA)
> set_param('mymodel','lock','edit1');
>
>
>
> lock is the parameter in mymodel i want to change. edit1 is the the text field in my GUI.
>
> ERROR:
>
>
> ??? Error using ==> GUI>pushbutton1_Callback at 104
> block_diagram does not have a parameter named 'lock'.
>
> Error in ==> gui_mainfcn at 96
> feval(varargin{:});
>
> Error in ==> GUI at 42
> gui_mainfcn(gui_State, varargin{:});
>
> Error in ==> @(hObject,eventdata)GUI('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
>
>
>
> I have set the path correct and the parameter is a constant block called 'lock' in mymodel.
>
> what is the problem
> Th
instead of whining again and again, you must keep up with your old threads...
http://www.mathworks.com/matlabcentral/newsreader/view_thread/276826
have you ever bothered to look at it - and try it...
us
|
|
0
|
|
|
|
Reply
|
us
|
3/19/2010 5:53:04 PM
|
|
|
2 Replies
314 Views
(page loaded in 0.043 seconds)
Similiar Articles: Help with an error - comp.soft-sys.matlabcomp.soft-sys.matlab 190221 articles. 353 followers. 1 Replies 135 Views (0 seconds) Tweet. Similiar Articles: Error help, please - comp.unix.solarishi, i need urgent help, in my messages i have this error 806 times, Dec 5 12:37:34 rrhh genunix: [ID 662105 kern.notice] message overflow on /dev/l... Error using Matlab - Help - comp.soft-sys.matlabDisplay message and abort function - MATLAB This MATLAB function generates an exception if the currently-running function tests for and confirms a faulty or ... HELP ..IBM ERROR 0175: Bad CRC1, stop POST task - comp.laptops ...Hi I have an IBM T20 lap top and when I turn it on , I get an ERROR 0175: Bad CRC1, stop POST task message . I have been told I need to update the bi... Help? I'm getting the Error Message - "The download cannot ...compile Py2.6 on SL - comp.lang.python... character in a tag in an HTML document it is parsing. ... both attribute-syntax and dict-syntax should continue ... Help on "Bus Error(coredump)" - comp.unix.programmerI encountered a "Bus Error" when running a program compiled by gcc (actually I tried to compile xcin/crxvt under SunOS) on Solaris. I have checked the... Need help with IDPROM error message - comp.unix.solarisI have an Ultra SPARC-IIi 300 Mhz, system, with 512 MBytes of EDO Ram, it was working fine until yesterday, when all of the sudden a meesage sayoin "... Please help: AET error in CCS (Code Composer studio) - comp.dsp ...Hello, I installed CCS (Code Composer studio) and it was working until recently. However recently it is giving me an error that AET cannot init... help with interp1: ??? Error using ==> interp1 at 261 The values ...hello everyone, I'm getting error in interp1 when trying to use it with the matrix M eventhough the values are indeed distinct which is the error in... Need help: OVERRUN error for serial port with Tcl85 but not with ...Hi Alex, last night I did a endurance test. The result is the same, no problem with tcl84 but overrun with tcl85, even without clock call. Java Technology Help - Error MessagesJava Technology Help Page - Get help on Java Runtime Environment and running java applets Help! Has anyone seen this error? - ErrorHelp.com - Error Search ...The world's database of error messages and solutions. ... Remind me to share my solution. 7/20/2012 10:24:31 PM
|