diff options
author | jcorgan | 2007-11-27 19:15:30 +0000 |
---|---|---|
committer | jcorgan | 2007-11-27 19:15:30 +0000 |
commit | 7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d (patch) | |
tree | 98879d1a1b4f02468cc1578c08e032164db9f6f2 /gr-trellis/doc/test_viterbi_equalization1.py | |
parent | b07df82d5536f65ad50d3029d69bd27cd25235de (diff) | |
download | gnuradio-7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d.tar.gz gnuradio-7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d.tar.bz2 gnuradio-7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d.zip |
Implements ticket:207
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7042 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-trellis/doc/test_viterbi_equalization1.py')
-rwxr-xr-x | gr-trellis/doc/test_viterbi_equalization1.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gr-trellis/doc/test_viterbi_equalization1.py b/gr-trellis/doc/test_viterbi_equalization1.py index 57d617aa0..93b852e85 100755 --- a/gr-trellis/doc/test_viterbi_equalization1.py +++ b/gr-trellis/doc/test_viterbi_equalization1.py @@ -10,7 +10,7 @@ import random import fsm_utils def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constellation,N0,seed): - fg = gr.flow_graph () + tb = gr.top_block () L = len(channel) # TX @@ -37,14 +37,14 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel va = trellis.viterbi_combined_s(f,K+L,0,0,dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # using viterbi_combined_s instead of metrics_f/viterbi_s allows larger packet lengths because metrics_f is complaining for not being able to allocate large buffers. This is due to the large f.O() in this application... dst = gr.vector_sink_s() - fg.connect (src,mod) - fg.connect (mod,isi,(add,0)) - fg.connect (noise,(add,1)) - #fg.connect (add,metrics) - #fg.connect (metrics,va,dst) - fg.connect (add,skip,va,dst) + tb.connect (src,mod) + tb.connect (mod,isi,(add,0)) + tb.connect (noise,(add,1)) + #tb.connect (add,metrics) + #tb.connect (metrics,va,dst) + tb.connect (add,skip,va,dst) - fg.run() + tb.run() data = dst.data() ntotal = len(data) - L |