discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] gr.hier_block2 in Python


From: Marcus D. Leech
Subject: [Discuss-gnuradio] gr.hier_block2 in Python
Date: Wed, 18 Apr 2012 21:01:56 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

So, I've been thinking about my ideas with respect to a "universal" source block that would allow runtime selection of FCD, UHD, or RTL-SDR
  blocks.

Is it possible to specify a source block purely in Python using gr.hier_block2?

If so, then the Python code could construct and plug in the appropriate actual source block "under the covers", based on some yet-to-be-determined syntax at runtime. It could even use the conditional-importing goo in Python to decide whether you have any/all of the appropriate hardware-specific support configured in the build.


--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]