Hey all, I've been trying to get the embedded python block to work with my USRP N310s, but I'm experiencing late packet errors.
My goal is to stream one channel of the N310 to a length 2^12 vector, perform some fancy fance on the vector, then vector to stream to a file sink. The problem: every time I run my basic python block I get late packet errors (LLLLLLLLLLLLLLLLLLLLLLLL). Here's a bare bones python block code that still gives me the error. import numpy as np from gnuradio import gr class blk(gr.sync_block): # other base classes are basic_block, decim_block, interp_block """Embedded Python Block example - a simple multiply const""" def __init__(self, 4096): # only default arguments here """arguments to this function show up as parameters in GRC""" gr.sync_block.__init__( self, name='Embedded Python Block', # will show up in GRC in_sig =[ (np.complex64,4096),(np.complex64, 4096)], out_sig =[(np.complex64,4096),(np.complex64, 4096)] ) def work(self, input_items, output_items): """example: multiply with constant""" output_items[0][:] = input_items[0][:] output_items[1][:] = input_items[1][:] return len(output_items[0]) This code works when I make a synthetic example, but when I stream out of the N310 it doesn't seem to work. Am I doing something wrong? -Mark -- Mark Wagner University of California San Diego Electrical and Computer Engineering
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com