Ejemplo n.º 1
0
    def test_001_t(self):
        tb = gr.top_block()
        src = pmtfile.source("test1.pf", True)
        #        op = gr.add_const_bb(1);
        head = gr.head(2, 200000)
        snk = pmtfile.sink("test2.pf", pmtfile.pmtfile.RI16)

        tb.connect(src, head, snk)
        tb.run()
Ejemplo n.º 2
0
    def test_001_t (self):
        tb = gr.top_block();
        src = pmtfile.source("test1.pf",True);
#        op = gr.add_const_bb(1);
        head = gr.head(2, 200000);
        snk = pmtfile.sink("test2.pf", pmtfile.pmtfile.RI16);

        tb.connect(src,head,snk);
        tb.run();
Ejemplo n.º 3
0
    def test_001_t (self):

        # set up fg
        src = gr.file_source(2, "/dev/urandom");
        ann = gr.annotator_raw(2);
        head = gr.head(2, 100000);
        snk = pmtfile.sink("test1.pf", pmtfile.pmtfile.RI16);
        tb = gr.top_block();

        # connections
        tb.connect(src,ann,head,snk);

        # add a test tag via the annotator
        ann.add_tag(0,pmt.pmt_string_to_symbol("test"), pmt.pmt_string_to_symbol("testval"));
        
        # run the graph
        tb.run ()