Thread Subject: Continuous polling with RS232 Matlab GUI

Subject: Continuous polling with RS232 Matlab GUI

From: jim smith

Date: 29 Feb, 2008 12:05:02

Message: 1 of 7

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

Subject: Continuous polling with RS232 Matlab GUI

From: Jason

Date: 29 Feb, 2008 12:08:01

Message: 2 of 7

"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

Subject: Continuous polling with RS232 Matlab GUI

From: Ved Vernekar

Date: 9 Mar, 2008 07:38:03

Message: 3 of 7

Jim would you be able to share ur code with me?? im working
on some thing similar my id is vedvern@hotmail.com

Subject: Continuous polling with RS232 Matlab GUI

From: Mick Foo

Date: 29 Mar, 2008 20:46:02

Message: 4 of 7

"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!

Subject: Continuous polling with RS232 Matlab GUI

From: SmartEngineer

Date: 30 Mar, 2008 02:39:01

Message: 5 of 7

"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.

Hope that helps you.

Subject: Continuous polling with RS232 Matlab GUI

From: Mick Foo

Date: 30 Mar, 2008 09:01:04

Message: 6 of 7

"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

Subject: Continuous polling with RS232 Matlab GUI

From: Jeremy

Date: 9 Apr, 2008 21:09:02

Message: 7 of 7

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.

Jeremy

email: LukeGlue@hotmail.com

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
continuous Chun-Chih 6 Jun, 2008 02:48:27
rs232 Om Chainani 23 Apr, 2008 20:03:28
gui jim smith 29 Feb, 2008 07:05:04
continuous jim smith 29 Feb, 2008 07:05:04
serial port jim smith 29 Feb, 2008 07:05:03
rs232 jim smith 29 Feb, 2008 07:05:03
rssFeed for this Thread

Contact us at files@mathworks.com