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?

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 4 de Jun. de 2013
Editada: Azzi Abdelmalek el 4 de Jun. de 2013

0 votos

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 comentario

Amanda
Amanda el 4 de Jun. de 2013
Thank you, that sounds like exactly what I'm looking for.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by