Pages: [1]   Go Down
Author Topic: Arduino Matlab GUI--> always execute  (Read 296 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey guys,
i want to execute a code with handles in the GUI of Matlab, it should start before I pess the start button and finish with the stop button.

I just want to now if there is a possibility for that problem?

thanks

Code I want to execute during the Gui is started
Code:
while(1)
i=fscanf(arduino, '%c');
    switch(i)
        case 'R'
            set(handles.rechtsLED,'BackgroundColor','red');
        case 'L'
            set(handles.linksLED,'BackgroundColor','red');
        otherwise
            set(handles.hall, 'String', i);
    end
end
Logged

Pages: [1]   Go Up
Jump to: