Separate Start/Stop in GUIDE

I'm only looking for a basic solution for this, if possible. I pretty much understand how to utilize the push buttons, and I definitely understand how to use the toggle button to start and stop output of data. The professor I'm working with would like separate start and stop buttons, but I'm having trouble doing what basically amounts to combining the toggle with the push buttons. Is there a way to do this through GUIDE, or must I do this purely through code?

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 4 Jun 2013
Edited: Azzi Abdelmalek on 4 Jun 2013
You can use two pushbutton one for stop another for start.You have to do it under certain condition,
  1. when start is activated, the pushbutto_start should be enabled off, and pushbutton_stop should be enabled on
  2. when stop is activated, pushbutton_stop should be enabled off and pushbutto_start should be enabled on
You have to communicate the status of each action start and stop between the two pushbutton, using for example guidata, you have also, to set in opening function, the two action start and stop to off and on

1 Comment

Thank you, that sounds like exactly what I'm looking for.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!