This question is closed. Reopen it to edit or answer.
Obtain sets of data using serial communication
1 view (last 30 days)
I wish to obtain sets of data which resulted from my robotic car through serial communication. The code that I written to obtain sets of from robotic car is as below. After troubleshooting for many time but the code still didn't worked.
%send the time and speed to Robocar
fprintf(s_port,sprintf('%s %d', speed, sim_t));
%for loop to get receive granted signal for robotic car
access = fgetl(s_port);
if (access == 'OK')
%for loop to obtain sets of data
data = fgetl(s_port);