Changeset 9741
- Timestamp:
- 10/07/08 21:48:33
- Files:
-
- gnuradio/trunk/grc/data/platforms/python/block_tree.xml (modified) (1 diff)
- gnuradio/trunk/grc/data/platforms/python/blocks/Makefile.am (modified) (1 diff)
- gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml (modified) (4 diffs)
- gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_density_b.xml (modified) (2 diffs)
- gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml (modified) (2 diffs)
- gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_signal_f.xml (deleted)
- gnuradio/trunk/grc/data/platforms/python/blocks/wxgui_numbersink2.xml (modified) (1 diff)
- gnuradio/trunk/grc/src/grc_gnuradio/blks2/Makefile.am (modified) (1 diff)
- gnuradio/trunk/grc/src/grc_gnuradio/blks2/__init__.py (modified) (1 diff)
- gnuradio/trunk/grc/src/grc_gnuradio/blks2/probe.py (added)
- gnuradio/trunk/grc/src/grc_gnuradio/blks2/queue.py (modified) (1 diff)
- gnuradio/trunk/grc/src/grc_gnuradio/blks2/selector.py (modified) (1 diff)
- gnuradio/trunk/grc/todo.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/trunk/grc/data/platforms/python/block_tree.xml
r9730 r9741 242 242 <block>gr_probe_density_b</block> 243 243 <block>gr_probe_mpsk_snr_c</block> 244 <block>gr_probe_signal_f</block>245 244 </cat> 246 245 <cat> gnuradio/trunk/grc/data/platforms/python/blocks/Makefile.am
r9730 r9741 142 142 gr_probe_density_b.xml \ 143 143 gr_probe_mpsk_snr_c.xml \ 144 gr_probe_signal_f.xml \145 144 gr_pwr_squelch_xx.xml \ 146 145 gr_quadrature_demod_cf.xml \ gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_avg_mag_sqrd_x.xml
r9739 r9741 8 8 <name>Probe Avg Mag^2</name> 9 9 <key>gr_probe_avg_mag_sqrd_x</key> 10 <import>from gnuradio import gr</import> 11 <import>import threading</import> 12 <import>import time</import> 13 <make>gr.probe_avg_mag_sqrd_$(type)($threshold, $alpha) 14 def _$(id)_run(): 15 while True: 16 time.sleep($update_interval) 17 print "$(id) Level:", self.$(id).level() 18 _$(id)_thread = threading.Thread(target=_$(id)_run) 19 _$(id)_thread.setDaemon(True) 20 _$(id)_thread.start()</make> 10 <import>from grc_gnuradio import blks2 as grc_blks2</import> 11 <make>grc_blks2.probe_avg_mag_sqrd_$(type)( 12 threshold=$threshold, 13 alpha=$alpha, 14 probe_rate=$probe_rate, 15 )</make> 21 16 <callback>set_alpha($alpha)</callback> 22 17 <callback>set_threshold($threshold)</callback> 18 <callback>set_probe_rate($probe_rate)</callback> 23 19 <param> 24 20 <name>Type</name> … … 39 35 <name>Threshold (dB)</name> 40 36 <key>threshold</key> 37 <value>0</value> 41 38 <type>real</type> 42 39 </param> … … 44 41 <name>Alpha</name> 45 42 <key>alpha</key> 43 <value>1</value> 46 44 <type>real</type> 47 45 </param> 48 46 <param> 49 <name> Update Interval (s)</name>50 <key> update_interval</key>51 <value>1 .0</value>47 <name>Probe Rate</name> 48 <key>probe_rate</key> 49 <value>10</value> 52 50 <type>real</type> 53 51 </param> … … 56 54 <type>$type.input</type> 57 55 </sink> 56 <source> 57 <name>out</name> 58 <type>float</type> 59 </source> 58 60 </block> gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_density_b.xml
r9739 r9741 8 8 <name>Probe Density</name> 9 9 <key>gr_probe_density_b</key> 10 <import>from gnuradio import gr</import> 11 <import>import threading</import> 12 <import>import time</import> 13 <make>gr.probe_density_b($alpha) 14 def _$(id)_run(): 15 while True: 16 time.sleep($update_interval) 17 print "$(id) Density:", self.$(id).density() 18 _$(id)_thread = threading.Thread(target=_$(id)_run) 19 _$(id)_thread.setDaemon(True) 20 _$(id)_thread.start()</make> 10 <import>from grc_gnuradio import blks2 as grc_blks2</import> 11 <make>grc_blks2.probe_density_b( 12 alpha=$alpha, 13 probe_rate=$probe_rate, 14 )</make> 21 15 <callback>set_alpha($alpha)</callback> 16 <callback>set_probe_rate($probe_rate)</callback> 22 17 <param> 23 18 <name>Alpha</name> 24 19 <key>alpha</key> 20 <value>1</value> 25 21 <type>real</type> 26 22 </param> 27 23 <param> 28 <name> Update Interval (s)</name>29 <key> update_interval</key>30 <value>1 .0</value>24 <name>Probe Rate</name> 25 <key>probe_rate</key> 26 <value>10</value> 31 27 <type>real</type> 32 28 </param> … … 35 31 <type>byte</type> 36 32 </sink> 33 <source> 34 <name>out</name> 35 <type>float</type> 36 </source> 37 37 </block> gnuradio/trunk/grc/data/platforms/python/blocks/gr_probe_mpsk_snr_c.xml
r9739 r9741 8 8 <name>Probe MPSK SNR</name> 9 9 <key>gr_probe_mpsk_snr_c</key> 10 <import>from gnuradio import gr</import> 11 <import>import threading</import> 12 <import>import time</import> 13 <make>gr.probe_mpsk_snr_c($alpha) 14 def _$(id)_run(): 15 while True: 16 time.sleep($update_interval) 17 print "$(id) Signal Mean:", self.$(id).signal_mean() 18 print "$(id) Noise Variance:", self.$(id).noise_variance() 19 print "$(id) SNR:", self.$(id).snr() 20 _$(id)_thread = threading.Thread(target=_$(id)_run) 21 _$(id)_thread.setDaemon(True) 22 _$(id)_thread.start()</make> 10 <import>from grc_gnuradio import blks2 as grc_blks2</import> 11 <make>grc_blks2.probe_mpsk_snr_c( 12 type="$type", 13 alpha=$alpha, 14 probe_rate=$probe_rate, 15 )</make> 23 16 <callback>set_alpha($alpha)</callback> 17 <callback>set_probe_rate($probe_rate)</callback> 18 <param> 19 <name>Type</name> 20 <key>type</key> 21 <type>enum</type> 22 <option> 23 <name>SNR</name> 24 <key>snr</key> 25 </option> 26 <option> 27 <name>Signal Mean</name> 28 <key>signal_mean</key> 29 </option> 30 <option> 31 <name>Noise Variance</name> 32 <key>noise_variance</key> 33 </option> 34 </param> 24 35 <param> 25 36 <name>Alpha</name> 26 37 <key>alpha</key> 38 <value>1</value> 27 39 <type>real</type> 28 40 </param> 29 41 <param> 30 <name> Update Interval (s)</name>31 <key> update_interval</key>32 <value>1 .0</value>42 <name>Probe Rate</name> 43 <key>probe_rate</key> 44 <value>10</value> 33 45 <type>real</type> 34 46 </param> … … 37 49 <type>complex</type> 38 50 </sink> 51 <source> 52 <name>out</name> 53 <type>float</type> 54 </source> 39 55 </block> gnuradio/trunk/grc/data/platforms/python/blocks/wxgui_numbersink2.xml
r9525 r9741 103 103 <name>Reference Level</name> 104 104 <key>ref_level</key> 105 <value> 50</value>105 <value>0</value> 106 106 <type>real</type> 107 107 </param> gnuradio/trunk/grc/src/grc_gnuradio/blks2/Makefile.am
r9525 r9741 28 28 error_rate.py \ 29 29 packet.py \ 30 probe.py \ 30 31 queue.py \ 31 32 selector.py gnuradio/trunk/grc/src/grc_gnuradio/blks2/__init__.py
r9525 r9741 26 26 from packet import packet_encoder, packet_decoder 27 27 from error_rate import error_rate 28 from probe import probe_avg_mag_sqrd_c, probe_avg_mag_sqrd_f, probe_density_b, probe_mpsk_snr_c gnuradio/trunk/grc/src/grc_gnuradio/blks2/queue.py
r9525 r9741 141 141 gr.io_signature(1, 1, self._item_size*self._vlen) # Output signature 142 142 ) 143 #create message s ink143 #create message source 144 144 message_source = gr.message_source(self._item_size*self._vlen, 1) 145 145 self._msgq = message_source.msgq() gnuradio/trunk/grc/src/grc_gnuradio/blks2/selector.py
r9525 r9741 1 #!/usr/bin/env python2 1 # 3 2 # Copyright 2008 Free Software Foundation, Inc. gnuradio/trunk/grc/todo.txt
r9739 r9741 7 7 -throttle with sink only (source is nulled) 8 8 -simplify simple usrp 9 -probe blocks needs better polling mechanism10 9 11 10 ################################################## … … 21 20 -search for blocks 22 21 -click and drag on whitespace to scroll 23 -expand preferences, allow for custom eprefs, prefs dialog should infer structure22 -expand preferences, allow for custom prefs, prefs dialog should infer structure 24 23 25 24 ################################################## … … 30 29 -add hier blocks to tree without restart? 31 30 -dont hide vlen controller when vlen > 1 32 -dont generate py files in cwd, add preference for user to choose 31 -dont generate py files in .grc file dir 32 -save/restore cwd 33 -check for .grc file readonly, ro message in window, no save option 33 34 34 35 ##################################################
