[SOLVED] Matlab based serial output

Status
Not open for further replies.

sriblue7

Member level 1
Joined
May 6, 2011
Messages
41
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Chennai
Activity points
1,614
I am thinking of doing a project using matlab.Is it possible to produce an output from serial port (COM) based on the output of a matlab program?(example if two images matches then a particular output say 101 should be transmitted via serial port). If so how?
Thanks in advance..
 

Hi sri,
it is posible with matlab to make communication with com port
all u need to do is open the port and send what ever data you want to send.

---------- Post added at 05:16 ---------- Previous post was at 05:11 ----------

here find the code for that

Var=open("serial");
fopen(Var);
if(condition true)
fwrite(Var,"Data String");
else
fwrite(Var,"some Text");
fclose(Var);
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…