i want to display serial data in matlab gui in real time.But when i use the function fread or fscanf the serial data is stored in a variable and the the entire data set is displayed together eg. 1544326432​5432454321​457532474.

6 views (last 30 days)
My program is: s=serial('com1'); fopen(s);
a=fscanf(s);
str=sprintf('%d',a); set(handles.edit1,'string',str);
fclose(s);

Answers (0)

Categories

Find more on Large Files and Big Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!