I'm trying to build a GUI that continually stream data from a text file and update the axes plot. The code for the plot button is as follows:
% --- Executes on button press in PLOT_button.
function PLOT_button_Callback(hObject, eventdata, handles)
% hObject handle to PLOT_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%Change the status2 box to 'Running'
%Run the graphing procedure if state is ON(1)
%plot_button the MODEL_axes
axis(handles.MODEL_axes,[1 24 1 24 0 4]);
%Flush graphic event queue and force update of plot
As you can see, the code structure is simple. When I press PLOT it will continually update and plot MODEL_axes until another button interrupt and changes handles.State. I wrote this code in Window, which compiled and work perfectly (it updates). However, when I run this in a Linux machine, the initial plot is show but it won't update. Is there something Linux specific that I missed?
This has been driving me nut :(
Thank you in advance.
||11/3/2010 10:57:03 PM