COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Help on this error

• Email
• Follow

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

See related articles to this posting

Dear Luke!

You did not specify where the problem occurs exactly.
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...

have you ever bothered to look at it - and try it...

us

 0
Reply us 3/19/2010 5:53:04 PM

2 Replies
334 Views

Similar Articles

12/9/2013 4:02:19 AM
page loaded in 51289 ms. (0)

Similar Artilces:

error !!
greetings to all . i want to do watermark on ChoosedFrame in mpeg. but i get an error.i m using matlab2009a. thanks in advance ??? Attempt to reference field of non-structure array. Error in ==> mmread at 23 cover_object=double(selectframe.cdata); clc;start_time=cputime; readerobj = mmreader('xylop.mpg', 'tag', 'myreader1'); vidFrames = read(readerobj);%Read in all the video frames. avilength = size(vidFrames,2); %Create a MATLAB movie structure from the video frames. k=50; % set minimum coeff difference blocksize=8; % cover obj damgalama için kullan&#305;lacak block say&#305;s&#305; ChoosedFrame=[1,10]; c_length = size(ChoosedFrame,2); for z = 1 : c_length %first frame is saving mov(z).cdata = vidFrames(:,:,:,1); ilk_frame=uint8(mov(z).cdata); imwrite(ilk_frame,'ilk_frame.jpeg','jpeg'); subplot(2,2,1),imshow(mov(z).cdata),title('Original Image'); selectframe = ChoosedFrame(z); selectmov=vidFrames(selectframe); cover_object=double(selectframe.cdata); %ERROR !!!! % mov(z).cdata=rgb2gray(mov(z).cdata

syntax error ???
Hi, on login.php , we can see that : (...) $sql = "SELECT Login FROM logins WHERE Login='$fusername'"; $result = mysql_query($sql) or die("Couldn't execute query1."); (...) field : login from table: logins fusername is a valid form field. I just can't understand why I get the message Couldn't execute query1. I don't see any syntax error. :-( Thank you in advance Ben On 30 Sep 2003 15:25:14 -0700, microben@hotmail.com (Ben) wrote: >Hi, on login.php , we can see that : > >(...) > >$sql = "SELECT Login FROM logins > WHERE Login='$fusername'"; > $result = mysql_query($sql) > or die("Couldn't execute query1."); > >(...) > >field : login from table: logins > >fusername is a valid form field. > >I just can't understand why I get the message Couldn't execute query1. >I don't see any syntax error. :-( Ask the database for more information; it knows more about the situation: $result = mysql_query($sql) or die("Couldn

Re: Error Message #3
Looks like you need a new setinit, did your SAS lease expire? Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: Roberto Valdivia [mailto:valdivia@MONTANA.EDU] Sent: Wednesday, February 04, 2004 9:01 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Error Message Importance: High Hi, I am using SAS v. 8. I've got this error, any idea how to solve it? Thanks, (SASXKINI): PHASE 3 KERNEL INITIALIZATION FAILED. UNABLE TO INITIALIZE THE SAS KERNEL Please contact your SAS Software Representative to obtain your updated SETINIT information. ERROR: Initialization of SETINIT information from SASHELP failed. FATAL: Unable to initialize the options subsystem.

Fatal error: No arguments to build
I tried to build the latest pidgin source I got that error after make issuing : make: Fatal error: No arguments to build #/export/home/unix/sources.d/internet.d/pidgin-2.5.2>./configure ; make checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets \$(MAKE)... yes checking for sed... /usr/bin... install... ./install-sh -c checking for xgettext... /usr/bin/xgettext checking for msgmerge... no checking for msgfmt... /usr/bin/msgfmt configure: error: GNU gettext tools not found; required for intltool make: Fatal error: No arguments to build happytoday wrote: > I tried to build the latest pidgin source I got that error after make > issuing : > make: Fatal error: No arguments to build > > > #/export/home/unix/sources.d/internet.d/pidgin-2.5.2>./configure ; > make > checking build system type... i386-pc-solaris2.10 >

Error with S-Function
Hi, I was running a small simulation and got the following error. Can you please advise why it occurred and how I can fix it? Thank you. Buddi Error using ==> set_param --> Invalid width for input port 1 specified by S-function 'sfun_spssw_discc' in 'PS_001/powergui/EquivalentModel2/State-Space'. --> Invalid width for output port 1 specified by S-function 'sfun_spssw_discc' in 'PS_001/powergui/EquivalentModel2/State-Space'.

Real Time Workshop Build Error
Hi, While Building my Model for grt target, I am getting following error.Anyone plz suggest me how to fix this. I am using MATLAB Version 7.0.1 and Real Time Workshop Version 6.1. My model is Error using ==> RTW.makertw.make_rtw Error using ==> rtw_c It appears that the build process was unable to locate some utility (e.g. make,compiler, linker, etc.). Please verify your path and tool environment variables are correct. You should be able to execute the make command: .\model_temp_pi_RTWS.bat at an MS DOS Command Prompt in the directory: D:\Rajesh\DATSHEET\R&D work\ThermalControl\Thermal_Matlab\model_temp_pi_RTWS_grt_rtw Currently, this generates the following error: D:\Rajesh\DATSHEET\R&D work\ThermalControl\Thermal_Matlab\model_temp_pi_RTWS_grt_rtw>set MATLAB=C:\MATLAB701 D:\Rajesh\DATSHEET\R&D work\ThermalControl\Thermal_Matlab\model_temp_pi_RTWS_grt_rtw>"C:\M ATLAB701\rtw\bin\win32\gmake" -f model_temp_pi_RTWS.mk GENERATE_REPORT=1 ADD_MDL_NAME_TO_GLOBALS=1 C:\MATLAB701\sys\lcc\bin\lcc -c -Fomodel_temp_pi_RTWS.obj -DUSE_RTMODEL -DMODEL=model_temp_pi_RTWS -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -I. -I.. -IC

Re: Posting error / formatting issues
Well that was interesting... the same message failed when sent as a reply, but passed when composed as a new message, even though the text was identical. It must be something in the header that it doesn't like. I sent an e-mail to my ISP. Hopefully that will clarify what's going on. Now I'm having trouble sending this message, which is not a reply. I notice that it moves the cursor to a particular place in the message after giving me the error, but I can't make any sense of it. For example, it predictably repositions the cursor over the space in "my ISP" above. =Ray=

Math::erfinv inverse error function
Hi, Does anyone know where to find a Ruby /inverse/ error function?^1 Thanks, -- Bil kleb http://fun3d.larc.nasa.gov [1] See for example http://en.wikipedia.org/wiki/Error_function -------- Original-Nachricht -------- > Datum: Sat, 14 Jun 2008 10:04:25 +0900 > Von: Bil Kleb <Bil.Kleb-usenet@nasa.gov> > An: ruby-talk@ruby-lang.org > Betreff: Math::erfinv inverse error function > Hi, > > Does anyone know where to find a Ruby /inverse/ error function?^1 > > Thanks, > -- > Bil kleb > http://fun3d.larc.nasa.gov > > [1] See for example http://en.wikipedia.org/wiki/Error_function Dear Bill, you can use Shin-ichiro Hara's statistics2 package http://raa.ruby-lang.org/project/statistics2/ . It has functions for calculating the integral of the Normal Function and its inverse, and then there is the following relation from the Wikipedia article you cited: >>The inverse of \Phi\, is known as the normal quantile function, or probit function and may be >>expressed in terms of the inverse error function as >>\operatorname{probit}(p) = \Phi^{-1}(p) = \sqrt{2}\,\operatorname{erf}^{-1}(2p-1) = -\sqrt{2

RE: Fatal Python error: deallocating None
George Sakkis wrote: > What makes the problem worse is that it's not deterministic; I can > restart it from (a little before) the point of crash and it doesn't > happen again at the same point, but it might happen further down. Now, > I wouldn't mind restarting it manually every time since the crashes > are not all that frequent; problem is, it's supposed to be a > long-running process that will probably take days to finish normally, > so I want it to run overnight too. Any hints ? None should *never* be deallocated, so it sounds like it's not being I

Attachment problems. Bug in Pine? or pilot error?
Hello all. I sent a mail with an attached word document, and this is the source code of the mail: Date: Tue, 1 Jul 2003 16:22:44 +0200 (CEST) From: Andreas Zymny <andreas@zymny.de> To: XXXXX Subject: XXXXX Message-ID: <20030701162124.G58169@odo.zymny.de> User-Agent: PINE(tm) -- a Program for Internet News & Email ; FreeBSD/i386 MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-558409384-1057069364=:58169" --0-558409384-1057069364=:58169 Content-Type: TEXT/PLAIN; charset=US-ASCII <message body> --0-558409384-1057069364=:58169 Content-Type: APPLIC