Hello,
Can anyone please suggest me how to acquire the data
(ASCI format) from a RS 232 port continuously..i.e The
port will be opened and it should keep reading till I say
stop(may be using a GUI).
Thanks in advance for your help.
SME.
Subject: Reading Serial data from RS232 Continuously
"SmartEngineer " <smartengineer@mathworks.com> wrote in
message <fsdvm1$q8l$1@fred.mathworks.com>...
> Hello,
> Can anyone please suggest me how to acquire the
data
> (ASCI format) from a RS 232 port continuously..i.e The
> port will be opened and it should keep reading till I
say
> stop(may be using a GUI).
>
> Thanks in advance for your help.
>
> SME.
Subject: Reading Serial data from RS232 Continuously
> "SmartEngineer " <smartengineer@mathworks.com> wrote in
> message <fsdvm1$q8l$1@fred.mathworks.com>...
>> Hello,
>> Can anyone please suggest me how to acquire the
> data
>> (ASCI format) from a RS 232 port continuously..i.e The
>> port will be opened and it should keep reading till I
> say
>> stop(may be using a GUI).
>>
>> Thanks in advance for your help.
>>
>> SME.
>
You can do this using a BytesAvailableFcn callback. Please see:
I was trying to do a similar operation but I wanted to read
the binary values in and convert them to integers and then
manipulate as necessary. I am using the rs232 to transmit in
2 bytes at a time. I want to read them in continuously. But
I am really lost as to where to start on this. Any help?
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.