I've made a GUI in matlab to read data via RS232 and plot
it to a graph. The only problem is I have to keep pressing
a button to send a 'getdata' command to my microcontroller
via RS232 so it sends the data back. I want to implement
this in continuously/real time so I don't have to keep
pressing a button to communicate with my device. I've
written while loops and that just freezes my program, i've
also tried a checkbox so if it's checked it gets data and
that also freezes the GUI.
Just wanted to know if there is a successful way to get
real time data without crashing my program, thanks
"jim smith" <jimsmith@mathworks.com> wrote in message
<fq8sde$g79$1@fred.mathworks.com>...
> I've made a GUI in matlab to read data via RS232 and plot
> it to a graph. The only problem is I have to keep
pressing
> a button to send a 'getdata' command to my
microcontroller
> via RS232 so it sends the data back. I want to implement
> this in continuously/real time so I don't have to keep
> pressing a button to communicate with my device. I've
> written while loops and that just freezes my program,
i've
> also tried a checkbox so if it's checked it gets data and
> that also freezes the GUI.
>
> Just wanted to know if there is a successful way to get
> real time data without crashing my program, thanks
Hi Jim, unfortunately I can't help you out but I also am
interested in plotting RS232 transported data would you be
able to share your code with me?
thnaks
Jason
"jim smith" <jimsmith@mathworks.com> wrote in message
<fq8sde$g79$1@fred.mathworks.com>...
> I've made a GUI in matlab to read data via RS232 and
plot
> it to a graph. The only problem is I have to keep
pressing
> a button to send a 'getdata' command to my
microcontroller
> via RS232 so it sends the data back. I want to implement
> this in continuously/real time so I don't have to keep
> pressing a button to communicate with my device. I've
> written while loops and that just freezes my program,
i've
> also tried a checkbox so if it's checked it gets data
and
> that also freezes the GUI.
>
> Just wanted to know if there is a successful way to get
> real time data without crashing my program, thanks
hi jim, i m doin a similiar gui, can u share wit me ur
codes, i will b very grateful!
"jim smith" <jimsmith@mathworks.com> wrote in message
<fq8sde$g79$1@fred.mathworks.com>...
> I've made a GUI in matlab to read data via RS232 and
plot
> it to a graph. The only problem is I have to keep
pressing
> a button to send a 'getdata' command to my
microcontroller
> via RS232 so it sends the data back. I want to implement
> this in continuously/real time so I don't have to keep
> pressing a button to communicate with my device. I've
> written while loops and that just freezes my program,
i've
> also tried a checkbox so if it's checked it gets data
and
> that also freezes the GUI.
>
> Just wanted to know if there is a successful way to get
> real time data without crashing my program, thanks
You may look at the post "Read Serial Port from RS232
Continuously" under serial port tag.
"jim smith" <jimsmith@mathworks.com> wrote in message
<fq8sde$g79$1@fred.mathworks.com>...
> I've made a GUI in matlab to read data via RS232 and
plot
> it to a graph. The only problem is I have to keep
pressing
> a button to send a 'getdata' command to my
microcontroller
> via RS232 so it sends the data back. I want to implement
> this in continuously/real time so I don't have to keep
> pressing a button to communicate with my device. I've
> written while loops and that just freezes my program,
i've
> also tried a checkbox so if it's checked it gets data
and
> that also freezes the GUI.
>
> Just wanted to know if there is a successful way to get
> real time data without crashing my program, thanks
hi jim, i m doin a similiar gui, can u share wit me ur
codes, i will b very grateful! and this my email:
odick85@yahoo.com
I am working to get an FPGA to communicate through rs232 and
read it into Matlab. If you wouldn't mind sharing your code
or giving some hints on where to start I would appreciate
it so much. Thank you.
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.