electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

HOW CAN MATLAB RECEIVE BINARY DATA FROM SERIAL PORT?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews -> HOW CAN MATLAB RECEIVE BINARY DATA FROM SERIAL PORT?
Author Message
NIDA



Joined: 11 Oct 2005
Posts: 6


Post12 Oct 2005 13:23   

matlab read serial binary


HAI!!!
I need an opinion on:-
1) how MATLAB received the binary data from serial port... Question
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


Post19 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
Google Adsense




Post19 Nov 2005 15:38   

Ads




Back to top
Circuit_seller



Joined: 23 Sep 2002
Posts: 415
Helped: 15


Post20 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews -> HOW CAN MATLAB RECEIVE BINARY DATA FROM SERIAL PORT?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
How to receive a very large data Serial COM Port ? (1)
How Can I send and receive data to USB Port (9)
how 2 reconstruct ecg signal from binary data using MATLAB (4)
how to read data from serial port of PC by using labview? (3)
how can i send data from a avr to pc via usb port? (5)
Serial Port data into Matlab. (2)
How can i transfer data from spectre to matlab? (7)
How can i transfer data from hsim to matlab? (1)
How I send big binary file(ie. MP3, WAV etc)to serial port ? (3)
recieve data from serial port (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS