discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Out of Tree Block Not Showing up in GRC


From: Martin Braun
Subject: Re: [Discuss-gnuradio] Out of Tree Block Not Showing up in GRC
Date: Wed, 07 May 2014 09:32:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Order of XML tags matters, check grc/python/block.dtd.

Martin

On 07.05.2014 02:07, Ron Economos wrote:
Here's an even more basic example that doesn't use
the opt tag. It shows my complete cluelessness about
xml, but it works.

https://github.com/drmpeg/gr-dvbs/blob/master/grc/dvbs_puncture_bb.xml

Ron

On 5/6/2014 11:55 AM, Jonathan Fox wrote:
Thanks for the response, I was looking at the opt tags and I am still
confused about how to do it. Do I need to set it up like this:

  <make>specsense.energy_detector_sink_f($vlen, $eta,
$white_space.val, $samp_rate, $cntr_freq, $verbose)</make>

  <param>
    <name>Desired Detection</name>
    <key>white_space</key>
    <type>bool</type>
    <option>
      <name>Open Band</name>
      <value>True</value>
      <opt>val:True</opt>
    </option>
    <option>
      <name>Closed Band</name>
      <value>False</value>
      <opt>val:False</opt>
    </option>
  </param>

  <param>
    <name>Verbose</name>
    <key>verbose</key>
    <type>bool</type>
    <option>
      <name>Yes</name>
      <value>True</value>
      <opt>val:True</opt>
    </option>
    <option>
      <name>No</name>
      <value>False</value>
      <opt>val:False</opt>
    </option>
  </param>

Thanks,

Jon


On Tue, May 6, 2014 at 11:08 AM, Ron Economos <address@hidden
<mailto:address@hidden>> wrote:

    Take a look at:

    https://github.com/BogdanDIA/gr-dvbt/blob/master/grc/dvbt_inner_coder.xml

    Ron


    On 5/6/2014 7:00 AM, Jonathan Fox wrote:

        I have two out of tree blocks I want to add to GRC, everything
        compiles and installs correctly except for the GRC component
        (not shown in GRC). So this should be an XML issue and I think
        it is related to my attempts at making a drop down option
        choice concerning the detection of white space/closed
        frequencies and verbose output. My XML is attached below and
        you can see that under Params Desired Detection and Verbose
        have options.

        When I look at other stock GNU Radio block's XML like the low
        pass filter, I see that some params have opt tags. Do I need
        these also, if so how would I use them in my case?

        Thanks,

        Jon




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





reply via email to

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