Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

HOW CAN MATLAB RECEIVE BINARY DATA FROM SERIAL PORT?

Status
Not open for further replies.

NIDA

Newbie level 4
Joined
Oct 11, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,336
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
 

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!
 

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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top