Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20583 > unrolled thread
| Started by | jsscshaw88@gmail.com |
|---|---|
| First post | 2012-12-19 11:02 -0800 |
| Last post | 2012-12-21 11:38 -0800 |
| Articles | 10 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
Real Time Graph jsscshaw88@gmail.com - 2012-12-19 11:02 -0800
Re: Real Time Graph Roedy Green <see_website@mindprod.com.invalid> - 2012-12-19 19:16 -0800
Re: Real Time Graph David Lamb <dalamb@cs.queensu.ca> - 2012-12-20 06:01 -0500
Re: Real Time Graph jsscshaw88@gmail.com - 2012-12-20 08:33 -0800
Re: Real Time Graph jlp <jlp@jlp.com> - 2012-12-20 19:35 +0100
Re: Real Time Graph jsscshaw88@gmail.com - 2012-12-20 10:45 -0800
Re: Real Time Graph Lew <lewbloch@gmail.com> - 2012-12-20 11:11 -0800
Re: Real Time Graph jsscshaw88@gmail.com - 2012-12-20 11:37 -0800
Re: Real Time Graph "John B. Matthews" <nospam@nospam.invalid> - 2012-12-20 17:47 -0500
Re: Real Time Graph jsscshaw88@gmail.com - 2012-12-21 11:38 -0800
| From | jsscshaw88@gmail.com |
|---|---|
| Date | 2012-12-19 11:02 -0800 |
| Subject | Real Time Graph |
| Message-ID | <5363b87a-3d06-4aa7-ba20-7a36812a7f25@googlegroups.com> |
Hi, I am a newbie and trying to plot a real time X Y plot in java. I am using Net Beans IDE7.2. Data has been sampled at the rate of 250 Samples per second. It looks like as follows http://img402.imageshack.us/img402/4927/plotqe.png Data will be coming into the computer over bluetooth but right now I am trying to read and plot the file. The file can be found at the following link https://hotfile.com/dl/185255400/ea220f1/packetr.dat.html You can better view this file in Hex Editor like HxD from wwww.mh-nexus.de. I do not know how many samples are in the file. But Data sample is 32 bytes long (from byte 13 to byte 44). This Data is the part of a 46 byte Frame. It will be a square wave of 1Hz, if we plot the data. It will be like 2 to 4 sec long wave form. I tried to work with the following Code to do this 1. http://audio-analysis.googlecode.com/svn/trunk/src/com/badlogic/audio/samples/part4/RealTimePlot.java 2. http://www.sharewareconnection.com/livegraph-2-0-beta01.htm But no sucess. I was not even able to run these above mentioned codes. Please advise! jess
[toc] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-12-19 19:16 -0800 |
| Message-ID | <bo05d851rrgfi8uegt1iipfmv0rtao9e2t@4ax.com> |
| In reply to | #20583 |
On Wed, 19 Dec 2012 11:02:14 -0800 (PST), jsscshaw88@gmail.com wrote, quoted or indirectly quoted someone who said : >I am a newbie and trying to plot a real time X Y plot in java. I am using Net Beans IDE7.2. Data has been sampled at the rate of 250 Samples per second. It looks like as follows > >http://img402.imageshack.us/img402/4927/plotqe.png You will sent up a Swing Timer to trigger repaints. see http://mindprod.com/jgloss/timer.html You will paint with the draw* methods on a JPanel. see http://mindprod.com/jgloss/jpanel.html You will best use a VolatileImage. On each repaint, you block move to scroll, then freshly generate the new tail. see http://mindprod.com/jgloss/jgloss/volatileimage.html you can put it in a tight loop by calling repaint at the end of your PaintComponents method. -- Roedy Green Canadian Mind Products http://mindprod.com Students who hire or con others to do their homework are as foolish as couch potatoes who hire others to go to the gym for them.
[toc] | [prev] | [next] | [standalone]
| From | David Lamb <dalamb@cs.queensu.ca> |
|---|---|
| Date | 2012-12-20 06:01 -0500 |
| Message-ID | <kaur59$g63$1@dont-email.me> |
| In reply to | #20616 |
On 19/12/2012 10:16 PM, Roedy Green wrote: > You will best use a VolatileImage. On each repaint, you block move to > scroll, then freshly generate the new tail. see > http://mindprod.com/jgloss/jgloss/volatileimage.html That should be just one /jgloss, Roedy.
[toc] | [prev] | [next] | [standalone]
| From | jsscshaw88@gmail.com |
|---|---|
| Date | 2012-12-20 08:33 -0800 |
| Message-ID | <1410b9fe-0b98-419d-b5ce-cbe9e1034f43@googlegroups.com> |
| In reply to | #20624 |
Hi Guys, Its not a school home work. As you can see in the original post that the data is coming over wirless bluetooth. I designed and made a bluetooth device and I am trying to write a high level software to obtain the data over bluetooth and display it on the screen and store it on the computer. jess
[toc] | [prev] | [next] | [standalone]
| From | jlp <jlp@jlp.com> |
|---|---|
| Date | 2012-12-20 19:35 +0100 |
| Message-ID | <50d35a7c$0$1201$ba4acef3@reader.news.orange.fr> |
| In reply to | #20628 |
Le 20/12/2012 17:33, jsscshaw88@gmail.com a écrit : > Hi Guys, > > Its not a school home work. As you can see in the original post that the data is coming over wirless bluetooth. > > I designed and made a bluetooth device and I am trying to write a high level software to obtain the data over bluetooth and display it on the screen and store it on the computer. > > jess > Did you take a look at JFreeChart? http://www.jfree.org/jfreechart/ You can treat "TimeSeries" with a slightly delayed time ( not in real time) -- Cordialement Jean-Louis
[toc] | [prev] | [next] | [standalone]
| From | jsscshaw88@gmail.com |
|---|---|
| Date | 2012-12-20 10:45 -0800 |
| Message-ID | <c83089a0-6b19-4dfc-9aec-6b0c715607ce@googlegroups.com> |
| In reply to | #20634 |
Hi, I will appricate, if you give me some steps to work with "jfreechart". Like how can I make it integrate with my java code and how can i make it read the format of my file that I did post on the following link https://hotfile.com/dl/185255400/ea220f1/packetr.dat.html Thanks jess
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-12-20 11:11 -0800 |
| Message-ID | <dbd92f61-b823-46c6-ac64-6a8a419cd248@googlegroups.com> |
| In reply to | #20635 |
jsscs...@gmail.com wrote: > I will appricate, if you give me some steps to work with "jfreechart". > Like how can I make it integrate with my java [sic] code and how can i [sic] > make it read the format of my file that I did post on the following link > > httq://yeah, right, we're going to follow your link. Sheesh. Here you go: jlp wrote: > Did you take a look at JFreeChart? > http://www.jfree.org/jfreechart/ > You can treat "TimeSeries" with a slightly delayed time ( not in real time) -- Lew
[toc] | [prev] | [next] | [standalone]
| From | jsscshaw88@gmail.com |
|---|---|
| Date | 2012-12-20 11:37 -0800 |
| Message-ID | <51224c99-8454-42c8-a3d7-293424d72a1c@googlegroups.com> |
| In reply to | #20635 |
I posted the file on another link http://www.4shared.com/file/8b5-YNcn/packetr.html# jess
[toc] | [prev] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2012-12-20 17:47 -0500 |
| Message-ID | <nospam-CA4E25.17475720122012@news.aioe.org> |
| In reply to | #20635 |
In article <c83089a0-6b19-4dfc-9aec-6b0c715607ce@googlegroups.com>, jsscshaw88@gmail.com wrote: > I will appricate, if you give me some steps to work with "jfreechart". This Q&A shows two approaches to displaying the incoming data: <http://stackoverflow.com/q/5048852/230513>. This Q&A illustrates updating a chart's model from a background thread: <http://stackoverflow.com/q/13205251/230513> > Like how can I make it integrate with my java code and how can i make > it read the format of my file that I did post on the following link > > https://hotfile.com/dl/185255400/ea220f1/packetr.dat.html Rather than ask readers to divine the format, you might describe it in terms of a minimal sample. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | jsscshaw88@gmail.com |
|---|---|
| Date | 2012-12-21 11:38 -0800 |
| Message-ID | <558b6da5-3218-4bd2-aec5-c079d7393d7e@googlegroups.com> |
| In reply to | #20649 |
Hi, I posted the jpeg image of the data file at the following link http://img43.imageshack.us/img43/1448/datafile.png jess
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web