discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Questions about the qt frequency display.


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Questions about the qt frequency display.
Date: Mon, 2 May 2011 11:04:25 +0100

On Sat, Apr 30, 2011 at 3:47 PM, Stefan Gofferje <address@hidden> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/30/2011 05:38 PM, Marcus D. Leech wrote:
> The bandwidth is used to determine both the axis labels, and the correct
> decimation parameters
>   to use to produce the desired display rate.  The center frequency is
> purely used set axis labels.
>
> I'd still recommend posting your .GRC file here.


I ran an audio_source -> qtgui_sink and it looked fine to me. I also took your grc xml here and ran that and saw the four spikes as expected.

The setting of the center frequency is only to set the axis labels, it won't do any translating of the signal or anything. Remember in this case and with your audio source one, the signal is real, so you will only have spectral components from -22.05 to 22.05 kHz and the spectrum will be symmetric around 0 Hz. So "translating" this up to 22.05 kHz won't really do anything for you since you have no information over 22.05 kHz, anyways.

Tom
 

 
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
 <timestamp>Sat Apr 30 17:25:44 2011</timestamp>
 <block>
   <key>options</key>
   <param>
     <key>id</key>
     <value>top_block</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>title</key>
     <value></value>
   </param>
   <param>
     <key>author</key>
     <value></value>
   </param>
   <param>
     <key>description</key>
     <value></value>
   </param>
   <param>
     <key>window_size</key>
     <value>1200,600</value>
   </param>
   <param>
     <key>generate_options</key>
     <value>qt_gui</value>
   </param>
   <param>
     <key>category</key>
     <value>Custom</value>
   </param>
   <param>
     <key>run_options</key>
     <value>prompt</value>
   </param>
   <param>
     <key>run</key>
     <value>True</value>
   </param>
   <param>
     <key>realtime_scheduling</key>
     <value></value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(10, 10)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <block>
   <key>variable</key>
   <param>
     <key>id</key>
     <value>samp_rate</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>value</key>
     <value>44100</value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(10, 170)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <block>
   <key>gr_add_xx</key>
   <param>
     <key>id</key>
     <value>gr_add_xx_0</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>type</key>
     <value>float</value>
   </param>
   <param>
     <key>num_inputs</key>
     <value>2</value>
   </param>
   <param>
     <key>vlen</key>
     <value>1</value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(579, 223)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <block>
   <key>gr_throttle</key>
   <param>
     <key>id</key>
     <value>gr_throttle_0</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>type</key>
     <value>float</value>
   </param>
   <param>
     <key>samples_per_second</key>
     <value>samp_rate</value>
   </param>
   <param>
     <key>vlen</key>
     <value>1</value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(716, 235)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <block>
   <key>qtgui_sink_x</key>
   <param>
     <key>id</key>
     <value>qtgui_sink_x_0</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>type</key>
     <value>float</value>
   </param>
   <param>
     <key>name</key>
     <value>QT GUI Plot</value>
   </param>
   <param>
     <key>fftsize</key>
     <value>1024</value>
   </param>
   <param>
     <key>wintype</key>
     <value>firdes.WIN_BLACKMAN_hARRIS</value>
   </param>
   <param>
     <key>fc</key>
     <value>22050</value>
   </param>
   <param>
     <key>bw</key>
     <value>44100</value>
   </param>
   <param>
     <key>plotfreq</key>
     <value>True</value>
   </param>
   <param>
     <key>plotwaterfall</key>
     <value>True</value>
   </param>
   <param>
     <key>plottime</key>
     <value>True</value>
   </param>
   <param>
     <key>plotconst</key>
     <value>False</value>
   </param>
   <param>
     <key>gui_hint</key>
     <value>:0,0,1,1</value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(913, 212)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <block>
   <key>gr_sig_source_x</key>
   <param>
     <key>id</key>
     <value>gr_sig_source_x_0</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>type</key>
     <value>float</value>
   </param>
   <param>
     <key>samp_rate</key>
     <value>samp_rate</value>
   </param>
   <param>
     <key>waveform</key>
     <value>gr.GR_SIN_WAVE</value>
   </param>
   <param>
     <key>freq</key>
     <value>1000</value>
   </param>
   <param>
     <key>amp</key>
     <value>1</value>
   </param>
   <param>
     <key>offset</key>
     <value>0</value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(364, 137)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <block>
   <key>gr_sig_source_x</key>
   <param>
     <key>id</key>
     <value>gr_sig_source_x_1</value>
   </param>
   <param>
     <key>_enabled</key>
     <value>True</value>
   </param>
   <param>
     <key>type</key>
     <value>float</value>
   </param>
   <param>
     <key>samp_rate</key>
     <value>samp_rate</value>
   </param>
   <param>
     <key>waveform</key>
     <value>gr.GR_SIN_WAVE</value>
   </param>
   <param>
     <key>freq</key>
     <value>5000</value>
   </param>
   <param>
     <key>amp</key>
     <value>1</value>
   </param>
   <param>
     <key>offset</key>
     <value>0</value>
   </param>
   <param>
     <key>_coordinate</key>
     <value>(361, 282)</value>
   </param>
   <param>
     <key>_rotation</key>
     <value>0</value>
   </param>
 </block>
 <connection>
   <source_block_id>gr_sig_source_x_0</source_block_id>
   <sink_block_id>gr_add_xx_0</sink_block_id>
   <source_key>0</source_key>
   <sink_key>0</sink_key>
 </connection>
 <connection>
   <source_block_id>gr_sig_source_x_1</source_block_id>
   <sink_block_id>gr_add_xx_0</sink_block_id>
   <source_key>0</source_key>
   <sink_key>1</sink_key>
 </connection>
 <connection>
   <source_block_id>gr_add_xx_0</source_block_id>
   <sink_block_id>gr_throttle_0</sink_block_id>
   <source_key>0</source_key>
   <sink_key>0</sink_key>
 </connection>
 <connection>
   <source_block_id>gr_throttle_0</source_block_id>
   <sink_block_id>qtgui_sink_x_0</sink_block_id>
   <source_key>0</source_key>
   <sink_key>0</sink_key>
 </connection>
</flow_graph>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAk28IRIACgkQbQKZlCdPOMNCBwCfc2++pWqm7HUm80Hxkk1QL11m
e7MAn34aLlXuqbiJk+RD6p/BdjjTiQWH
=HRuz
-----END PGP SIGNATURE-----


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]