Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit42_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit41_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit41_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit40_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit40_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit39_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit39_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit38_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit38_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit35_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit35_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit32_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit32_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit27_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit27_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit37_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit37_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit34_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit34_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit31_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit31_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit26_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit26_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit36_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit36_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit33_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit33_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit30_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit30_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit25_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit25_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit23_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit23_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit29_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit29_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit28_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit28_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit24_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit24_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit5_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit5_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit22_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit22_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit4_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit4_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
??? Error using ==> feval
Undefined function or method 'edit21_CreateFcn' for input arguments of type 'double'.
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> BUSSTOP4 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)busstop4('edit21_CreateFcn',hObject,eventdata,guidata(hObject))
??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
Is there a reason you feel that those methods should exist? Have you
searched your source files to find out which file they are defined in?
How did you run your program? If you started it by opening the .fig file
then that will not work: you have to run the .m file associated with the
GUI.
Your email looks like you are working for TMW: lak...@mathworks.com
Is it true?
You've posted a really large list of error messages, but you did not mention how this error was produced and you did not ask a question.
The error messages claims, that the function "edit42_CreateFcn" cannot be used. You claim, that:
> 'edit42_CreateFcn' method is not needed.
So what's correct now?
I'm deeply impressed, that Walter tries to help you based on these lean information. He got my respect.
I'm at least not able to help you, but your debugger is. A debugger is more helpful to find the cause of problems than a newsgroup is.
Kind regards, Jan
People who use the mathworks forum interface but do not establish an
alternate email address are shown as having @mathworks.com email addresses.
> You've posted a really large list of error messages, but you did not
> mention how this error was produced and you did not ask a question.
> The error messages claims, that the function "edit42_CreateFcn" cannot
> be used. You claim, that:
>> 'edit42_CreateFcn' method is not needed.
> So what's correct now?
I suspect this is a case of starting with a GUIDE generate GUI that
someone else created and trying to adapt it for something else without
even having full source of what was done previously.
Probably the easiest solution for the original poster would be to start
over *without* the old GUI: that way the poster would know what
everything was for and would have the source.
I'm not sure what the original poster needs beyond,
function mygui
editbox = uicontrol('Style','edit', 'Units', 'pixels', ...
'Position', [20 20 400 400], 'Callback', @send_the_data);
end
function send_the_data(src, event)
current_text = char(get(editbox, 'String'));
if isempty(current_text)
return
end
s = serial('COM3:'); %and maybe set baud rate too
fopen(s);
fprintf(s, '%s\n', current_text); %or perhaps transpose(current_text)
fclose(s);
end
Sir when i am running your code It is showing some error like
??? Undefined function or variable 'editbox'.
Error in ==> mygui>send_the_data at 6
current_text = char(get(editbox, 'String'));
??? Error while evaluating uicontrol Callback
In my code also i am getting the same error. In my gui i have around 30 test feilds all these data should be transmitted serailly. And how to save this gui has a figure with the text in the fields so that anyone can refer in future
Thank you sir
Sorry, that editbox should have been src
current_text = char(get(src, 'String'));
> In my code also i am getting the same error. In my gui i have around 30
> test feilds all these data should be transmitted serailly. And how to
> save this gui has a figure with the text in the fields so that anyone
> can refer in future
If you have not managed to track down those missing edit* functions, then you
should rebuild your GUI instead of trying to modify something you don't have a
clue about.
Hello sir!
I got the exact wat i am expecting. Thank you very much. Serial transmission is working properly. Once again thankyou very much