Thank you hate for your time.
i found the code on the net and it is not me who wrote it.
i will try to answer ur questions:
1- In which variables are your 3 delay values stored?
-> insert code line(s) here!
Can you see those values in the corresponding variables on MATLAB debugger which is usually at the top right of the main window named 'workspace'?
in xyz :
xyz = get(hObject,'String');
no, i cannot see it in the corresponding variables debugger but in the command window i m receiving like a summary and i found this:
Read/Write State
TransferStatus: idle
BytesAvailable: 227
ValuesReceived: 0
ValuesSent: 3
2- Which com port does the code initialize and where in the code?
i m working on com5
s = serial('COM5','BaudRate',9600);
3- How are these values are sent to serial port and where in the code?
fprintf(s,'%f',char(xyz));
i think here i have a problem
4- Can you receive anything at the Arduino side, did you test it with the built-in serial monitor?
i tried the arduino code with the serial monitor (no matlab) and it is working properly. i sent (1000,1000,1000) and i receive (1000,1000,1000)
but when i use the matlab to send the info serially, i can see that the COM port opens since the arduino flashes but i receive no output.
Posted on: July 06, 2014, 11:02:21 23:02 - Automerged
i ve been working on this project nights and now one line (pause) simply make it work yeyyyyyy
thank you all for ur help