×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Still problem with GUIs

Still problem with GUIs

Still problem with GUIs

(OP)
I'm making a GUI and i have to show a image every second. I create a timer to do so in opening function from the GUI like this:

handles.tempo = timer;
handles.tempo.ExecutionMode = 'FixedSpacing';
handles.tempo.StartDelay = 5;
set(handles.tempo, 'TimerFcn', {@myphoto_Callback, handles});
handles.tempo.Period = 1;
start(handles.tempo);

This code generate the timer and every second call the subrutine 'myphoto_Callback', where i try to show the image on axes from de GUI like this:

function myphoto_Callback(h, event, handles)
    axes(handles.axes1);
    photo = imread(handles.path,handles.format);
    imshow(photo);
end

It suppose that handles.path and handles.format get good values in opening function from the GUI.

MY PROBLEM IS ALTHOUGH I'M INDICATING THAT THE IMAGE HAS TO SHOW IN MY AXES ANOTHER FIGURE COMES AND SHOW IT.

HOW COULD I DO TO SOLVE IT?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources