|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] QT graphical sink: how set dimension? |
Date: | Thu, 31 Mar 2016 15:24:57 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Hi Victor, am I interpreting this correctly: You have a device that you want to control via a GUI slider? I think a relatively elegant way to have the control interface would be: 1. Making an OOT module; the Guided Tutorials[1], Chapter 3, explain how. 2. use gr_modtool add to add a python class of the "noblock" type 3. that class would mainly have a method, let's call it set_fx(value) that calls; edit the python file from step 2. to include that. Here's where your soft66-control program is being called 4. write a GRC XML descriptor; In essence, copy and paste over the XML file from one of the existing things, for example errrr the constant source. remove all sinks and sources, and only leave one <param> that has a <callback>, which calls your set_fx()! 5. install your module This way, you'd end up having an actual block you can use in GRC. I assume you're actually getting/sending samples to your soft66? How does that interface with GNU Radio? Maybe it would make sense to have a Sink/Source block (like, for example, the USRP sink and source blocks) that encapsulates both the sampling interface and the control interface? Best regards, Marcus [1] http://s.hostalia.de/gr On 31.03.2016 15:14, Vitt Benv wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |