| Author |
Message |
NIDA
Joined: 11 Oct 2005 Posts: 6
|
12 Oct 2005 13:23 matlab read serial binary |
|
|
|
|
HAI!!!
I need an opinion on:-
1) how MATLAB received the binary data from serial port...
2) Let say MATLAB has already received the binary data. Now, my question is:
IS MATLAB automatically save the data in database or Do I need to create my own database:?:
I'm still new in MATLAB:cry:, so I hope there is some one who could help me regarding to this matter.
Thanks in advance,
NIDA
|
|
| Back to top |
|
 |
dbustan
Joined: 09 Oct 2005 Posts: 6
|
19 Nov 2005 15:38 serial binary matlab |
|
|
|
|
instrumental toolbox is a toolbox for using serial and parallel port.read its documentaion maybe you can find your answer.
But why u cannot use visual basic or visual c.They have a lot of .DLL files that may help you!
|
|
| Back to top |
|
 |
Google AdSense

|
19 Nov 2005 15:38 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Circuit_seller
Joined: 23 Sep 2002 Posts: 415 Helped: 15
|
20 Nov 2005 13:20 how to read binary serial data in matlab |
|
|
|
|
Hi
In MATLAB you can define a serial object, open it and read and write data from it using fread and fwrite.
Here is an example:
s = serial('com1');
s.BaudRate = 57600;
s.FlowControl = 'hardware';
s.Timeout = 1000;
s.OutputBufferSize = 1000;
fopen(s);
fwrite(s, a , 'uchar');
b = fread(s,1,'int8');
Regards
|
|
| Back to top |
|
 |