Effacer les filtres
Effacer les filtres

GUI launching

2 vues (au cours des 30 derniers jours)
Amardeep
Amardeep le 10 Juin 2011
I recently created a GUI and tested it and it worked fine. Returning to it a couple of weeks later when I try to run it, it doesnt run the opening function (im not sure if it runs it at all or partially) and this then leads to a load of errors e.g.
??? Attempt to reference field of non-structure array.
Error in ==> pfu_state_machine>PB_Reset_Callback at 309
set(handles.Txt_CBITRes,'String','Awaiting stimuli')
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> pfu_state_machine at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)pfu_state_machine('PB_Reset_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
However if I run the GUI from the GUIDE run GUI button or from the m file run button it behaves as it should. What has happened here?
All that has been done to the file in the interrim time is i made a copy of it to zip. Neither copy is working.
Amar
  2 commentaires
Jan
Jan le 10 Juin 2011
Please post, what "when I try to run it" exactly means. Do you double click on the FIG file? Or do you start the M-file? The singular in "I made a copy of *it*" sounds, like you did not copy the M- *and* the FIG file.
Amardeep
Amardeep le 13 Juin 2011
Hi Jan
I mean that when I try to run the fig from the matlab command line. I made a copy of the whole folder which the project resides in.
Thanks
Amardeep

Connectez-vous pour commenter.

Réponse acceptée

math98
math98 le 13 Juin 2011
You either must open your GUI file in a known directory for MATLAB, or must add your own GUI directory (folder address) to MATLAB search database! use path() statement and read its help.. good luck

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by