Hello,
I'm trying to make a GUI that plots my position and does some other
stuff using GPS data in real time.
I have it working by reading from a file of saved GPS data. My program
reads the file, parses each line for the useful information, and
generates a dictionary containing all the useful data. Basically, the
dictionary serves as a database and I then plot the data, etc. from
it.
However, I can't figure out how to do it with data coming in in real time.
What I need is some way to have it listen to the GPS data, and when
relevant information comes in: 1) append it to the dictionary, 2) plot
the latest point on the map
I can't figure out how to do this!
(Note: I think gobject.MainContext in GTK does what I would need it to
do. Is that is the case, is there something similar in wxWindows?)
Thanks,
Alex
Alex Garbino wrote:
Hello,
I'm trying to make a GUI that plots my position and does some other
stuff using GPS data in real time.
I have it working by reading from a file of saved GPS data. My program
reads the file, parses each line for the useful information, and
generates a dictionary containing all the useful data. Basically, the
dictionary serves as a database and I then plot the data, etc. from
it.
However, I can't figure out how to do it with data coming in in real time.
Although I'm curious to real answers,
here is mine: just do it exactly like above !
( I do this with data coming from an AD converter at 20.000 samples per second
and it works great. I use 2 files in a double buffer setup, to prevent the files becoming to big)
cheers,
Stef
···
What I need is some way to have it listen to the GPS data, and when
relevant information comes in: 1) append it to the dictionary, 2) plot
the latest point on the map
I can't figure out how to do this!
(Note: I think gobject.MainContext in GTK does what I would need it to
do. Is that is the case, is there something similar in wxWindows?)
Thanks,
Alex
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Stef,
do you reread the file every so often? How do you update it? (I want
my plot to be updated at least 4 times a second if possible, I have
other data from ADCs coming in too)
Do you have sample code?
Alex
···
On Sat, Aug 16, 2008 at 6:06 PM, Stef Mientki <s.mientki@ru.nl> wrote:
Alex Garbino wrote:
Hello,
I'm trying to make a GUI that plots my position and does some other
stuff using GPS data in real time.
I have it working by reading from a file of saved GPS data. My program
reads the file, parses each line for the useful information, and
generates a dictionary containing all the useful data. Basically, the
dictionary serves as a database and I then plot the data, etc. from
it.
However, I can't figure out how to do it with data coming in in real time.
Although I'm curious to real answers,
here is mine: just do it exactly like above !
( I do this with data coming from an AD converter at 20.000 samples per
second
and it works great. I use 2 files in a double buffer setup, to prevent the
files becoming to big)
cheers,
Stef
What I need is some way to have it listen to the GPS data, and when
relevant information comes in: 1) append it to the dictionary, 2) plot
the latest point on the map
I can't figure out how to do this!
(Note: I think gobject.MainContext in GTK does what I would need it to
do. Is that is the case, is there something similar in wxWindows?)
Thanks,
Alex
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Alex Garbino wrote:
Stef,
do you reread the file every so often?
every 50 msec,
How do you update it? (I want
my plot to be updated at least 4 times a second if possible, I have
other data from ADCs coming in too)
Do you have sample code?
attached is the receiver,
which may have some weird hooks (because it's a standard brick in Pylab_Works),
but the idea is clear (I guess).
The sender is written in Delphi,
didn't have time to rewrite it for Python.
Prior we used this with Delpi as sender and receiver,
and our maximum performance (about 5 years ago) was:
100.000 samples (each one being an integer) per second.
hopes this helps,
cheers,
Stef
control_adc.pyc (8.97 KB)
···
Alex
On Sat, Aug 16, 2008 at 6:06 PM, Stef Mientki <s.mientki@ru.nl> wrote:
Alex Garbino wrote:
Hello,
I'm trying to make a GUI that plots my position and does some other
stuff using GPS data in real time.
I have it working by reading from a file of saved GPS data. My program
reads the file, parses each line for the useful information, and
generates a dictionary containing all the useful data. Basically, the
dictionary serves as a database and I then plot the data, etc. from
it.
However, I can't figure out how to do it with data coming in in real time.
Although I'm curious to real answers,
here is mine: just do it exactly like above !
( I do this with data coming from an AD converter at 20.000 samples per
second
and it works great. I use 2 files in a double buffer setup, to prevent the
files becoming to big)
cheers,
Stef
What I need is some way to have it listen to the GPS data, and when
relevant information comes in: 1) append it to the dictionary, 2) plot
the latest point on the map
I can't figure out how to do this!
(Note: I think gobject.MainContext in GTK does what I would need it to
do. Is that is the case, is there something similar in wxWindows?)
Thanks,
Alex
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users