I will try to explain you my basic idea.
I want to do something like Ssc 32, choose channel (servo) and with slider move the speciic servo
I can connect it etc… but for example i have this statement
fprintf(S,’#4P2000S200’)
i want 2000 to put it dynamic with a slider
my problem is i dont know how 2000 can be added with variable that slider will give
like
svalue = get(handles.slider1,‘Value’);
guidata(hObject, handles);
set(handles.text3,‘String’, num2str(svalue));
set(handles.text3,‘Value’,svalue);
in = get(handles.listbox2,‘Value’);
While debugging this I would have a tendancy to try to also output what strings you generate back to a terminal window or the like to make sure you are getting what you expect.
It could be as simple as you need to add a CR to the end of the command.