Hi, I am trying to learn to build an OOT module using python.
To start with, a simple vector source (though it is already their) !, But I have further plans after the initial phase is complete. Aim : The block should take in values from user for example (1,1,0,0) and output the same. I am following the tutorial : https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_Python After adding the block in gui & running it gives error (line 24, testing_source.py, I am attaching all the files that I created. Can you please help me, where I did wrong? Ayaz
<?xml version="1.0"?> <block> <name>source</name> <key>SpanLab_source</key> <category>[SpanLab]</category> <import>import SpanLab</import> <make>SpanLab.source($values)</make> <!-- Make one 'param' node for every Parameter you want settable from the GUI. Sub-nodes: * name * key (makes the value accessible as $keyname, e.g. in the make node) * type --> <param> <name>source</name> <key>source</key> <type>int</type> </param> <!-- Make one 'sink' node per input. Sub-nodes: * name (an identifier for the GUI) * type * vlen * optional (set to 1 for optional inputs) --> <!-- Make one 'source' node per output. Sub-nodes: * name (an identifier for the GUI) * type * vlen * optional (set to 1 for optional inputs) --> <source> <name>out</name> <type>int</type> </source> </block>
source.py
Description: source.py
qa_source.py
Description: qa_source.py
testing_source.py
Description: testing_source.py
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio