Spectrum Plot

52 views
Skip to first unread message

az1987

unread,
Feb 6, 2012, 7:02:24 AM2/6/12
to Google Visualization API
Hey guys,
I need some help with a small project I'm doing.
I have a radio receiver hooked up to a serial port and have it
streaming on a web page. I need to create a spectrum plot which will
show the given frequency strength.
I need help getting this started so any help would be good.

asgallant

unread,
Feb 6, 2012, 10:16:12 AM2/6/12
to google-visua...@googlegroups.com
How is your data structured?  What do you want to plot?  Signal strength over time or frequency vs signal strength?  What type of chart would you like to use?

Aaron Pate

unread,
Feb 6, 2012, 11:46:24 AM2/6/12
to google-visua...@googlegroups.com
Well basically, what i want to do is, to allow the client to enter a beginning frequency and an end frequency and then it to be signal strength over time on a line graph.

On Mon, Feb 6, 2012 at 3:16 PM, asgallant <drew_g...@abtassoc.com> wrote:
How is your data structured?  What do you want to plot?  Signal strength over time or frequency vs signal strength?  What type of chart would you like to use?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/h1Jx56fCWEMJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

asgallant

unread,
Feb 6, 2012, 12:47:03 PM2/6/12
to google-visua...@googlegroups.com
Something like this: http://jsfiddle.net/uTAjq/?

You can tie in Controls (http://code.google.com/apis/chart/interactive/docs/gallery/controls.html#gallery) to allow the user to filter the range of frequencies.

Aaron Pate

unread,
Feb 6, 2012, 3:44:45 PM2/6/12
to google-visua...@googlegroups.com
Yeah like that with the ability to enter a frequency and see its strength, or like on that example the ability to enter a start frequency like 100KHz to 250KHz. Is that possible?
Also how will I get the frequency from the radio receiver to the line graph?

On Mon, Feb 6, 2012 at 5:47 PM, asgallant <drew_g...@abtassoc.com> wrote:
Something like this: http://jsfiddle.net/uTAjq/?

You can tie in Controls (http://code.google.com/apis/chart/interactive/docs/gallery/controls.html#gallery) to allow the user to filter the range of frequencies.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Feb 6, 2012, 3:59:29 PM2/6/12
to google-visua...@googlegroups.com
Use the Controls to set the frequency range.  I don't think there is anything that explicitly shows a single value on the chart, but you can roll your own by taking input from an HTML form field (or something similar) and searching the DataTable for the frequency using the DataTable#getFilteredRows() method (which will return the rows matching the filter) and fetching the associated strength by calling the DataTable#getValue() method.

I can't help you much with getting data from the radio - you'll have to work that out for yourself.  I presume this will involve some server-side processing to pull data from the radio, which you can then pass to the client via PHP scripting or AJAX calls to a server script.

Aaron Pate

unread,
Feb 6, 2012, 6:30:45 PM2/6/12
to google-visua...@googlegroups.com
Thanks, Do you know anywhere that could help me with the data from the radio. Could i somehow retrieve the data from the radio by controlling the serial port to tell me? 

On Mon, Feb 6, 2012 at 8:59 PM, asgallant <drew_g...@abtassoc.com> wrote:
Use the Controls to set the frequency range.  I don't think there is anything that explicitly shows a single value on the chart, but you can roll your own by taking input from an HTML form field (or something similar) and searching the DataTable for the frequency using the DataTable#getFilteredRows() method (which will return the rows matching the filter) and fetching the associated strength by calling the DataTable#getValue() method.

I can't help you much with getting data from the radio - you'll have to work that out for yourself.  I presume this will involve some server-side processing to pull data from the radio, which you can then pass to the client via PHP scripting or AJAX calls to a server script.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Feb 7, 2012, 9:24:45 AM2/7/12
to google-visua...@googlegroups.com
I would start by Googleing the radio manufacturer or model and looking for developer information.  If the radio is designed to interface with PC's, there may be tools available to do what you want or forums for developer discussions.  If nothing comes up, try more generic searches for interfacing radios with PC's.

Aaron Pate

unread,
Feb 8, 2012, 10:31:33 AM2/8/12
to google-visua...@googlegroups.com
Would i be able to use a chart like that and have data streaming in real time to it?

On Tue, Feb 7, 2012 at 2:24 PM, asgallant <drew_g...@abtassoc.com> wrote:
I would start by Googleing the radio manufacturer or model and looking for developer information.  If the radio is designed to interface with PC's, there may be tools available to do what you want or forums for developer discussions.  If nothing comes up, try more generic searches for interfacing radios with PC's.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Feb 8, 2012, 11:00:16 AM2/8/12
to google-visua...@googlegroups.com
Assuming you can get a real-time data stream from your server, yes, you can have the chart update in real-time.
Reply all
Reply to author
Forward
0 new messages