clear all;p=serial('COM2','BaudRate',9600,'DataBits',8);set(p,'Parity','none');set(p,'Terminator','LF');fopen(p);son=100;figure xlabel('zaman')ylabel('veri')title('veri okuma')grid on;hold on;for t=1:1:son ylim([0 50]) xlim([1 100]) veri=fscanf(p,'%f'); plot(t,veri); drawnow endfclose(p);delete(p);clear all
I want to read volue from seria port and with plot I wanna see graphic but there is a warning
Unsuccessful read: A timeout occurred before the Terminator was reached.
I dont solve problem.Help
Best Answer