Tacomagic
Bioengineer
- Jul 10, 2006
- 2
Hey there,
I'm trying to create a data collecting GUI in Matlab. I'm fairly new to constructing GUIs in matlab so I need a little help here. I want to create a toggle button that collects data when pressed, and stops collecting data when it is unpressed. However, when pressed the program continuously collects data, and unpressing it does not stop the data collection.
Basically I'm trying to find a way to poll the state of the button within callback for the initial button down. So far I've had no luck as the get(hObject,'value') is unfortunately not updated until after the callback is finished executing.
Any help here is appreciated.
I'm trying to create a data collecting GUI in Matlab. I'm fairly new to constructing GUIs in matlab so I need a little help here. I want to create a toggle button that collects data when pressed, and stops collecting data when it is unpressed. However, when pressed the program continuously collects data, and unpressing it does not stop the data collection.
Basically I'm trying to find a way to poll the state of the button within callback for the initial button down. So far I've had no luck as the get(hObject,'value') is unfortunately not updated until after the callback is finished executing.
Any help here is appreciated.