MATLAB-RS232:read and plot received values ..pls Help

Hi all;
i am very happy to be here and i hope we can find a solution to my Problem.
I am working on a serial communication between 2 Computers ,the first Computer is connect with 4 cameras and receive datas from these cameras. From each camera the data are as follow : DATE, Time, X, Y
On the 2nd Computer where Matlab working, i can read this Data with fscanf(serial).but the data of all 4 cameras are coming in the same line, and i dont know how to split it and receive it like this:
camera1:date ,time ,x, y
camera2:date,time,x,y .......
I have tried to use strread to split it, it was successful but i had in that case only string data and i couldnt use it.
here the small code,

serobj = serial('COM1');
set(serobj, 'ReadAsyncMode', 'Continuous') ;
set(serobj, 'Timeout', 1) ;
serobj.BytesAvailable
data = fscanf(serobj)
[kamera1 ,kamera2 ,kamera3 ,kamera4 ] = strread(data,'%s%s%s%s%','delimiter',';')

Thanks in advance and sorry for my english

Replies

You are reading an archived discussion.

Related Posts

Hi everyone, I just changed my major to IT and im studying for my exam.. can any1 please help me understand any of the following.. 1- what are RISC -...
what are RISC - CISC - FLOPS? and whats the difference between RISC and CISC computers??
what are translator, interpreter and virtual machine??
Hi , we students specially in 11 & 12 class come across varous terms like http and https . but actualyy i know full form (hyper text transfer protocol) but...
hi m new here hope u all will cooperate with me