discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Block properties XML help


From: Ron Economos
Subject: [Discuss-gnuradio] Block properties XML help
Date: Tue, 03 Feb 2015 00:53:52 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

I'm looking for some guidance with block properties XML. I have
a situation where I'd like to have subsets of options based on some
other option setting.

For example, in gr-dvbt2, I have an option setting for the version of
the specification. Based on that option, I want to have the preamble
options be T2 SISO or T2 MISO for version 1.1.1, or T2 SISO, T2 MISO,
T2-Lite SISO or T2-Lite MISO for version 1.3.1.

I've come up with a method, but it's super kludgy since it uses
two variables for the same option. In this case, preamble1 and
preamble2.

  <param>
    <name>Specification Version</name>
    <key>version</key>
    <type>enum</type>
    <option>
      <name>1.1.1</name>
      <key>VERSION_111</key>
      <opt>val:dvbt2.VERSION_111</opt>
      <opt>hide_111:</opt>
      <opt>hide_131:all</opt>
    </option>
    <option>
      <name>1.3.1</name>
      <key>VERSION_131</key>
      <opt>val:dvbt2.VERSION_131</opt>
      <opt>hide_111:all</opt>
      <opt>hide_131:</opt>
    </option>
  </param>
  <param>
    <name>Preamble</name>
    <key>preamble1</key>
    <type>enum</type>
    <hide>$version.hide_111</hide>
    <option>
      <name>T2 SISO</name>
      <key>PREAMBLE_T2_SISO</key>
      <opt>val:dvbt2.PREAMBLE_T2_SISO</opt>
    </option>
    <option>
      <name>T2 MISO</name>
      <key>PREAMBLE_T2_MISO</key>
      <opt>val:dvbt2.PREAMBLE_T2_MISO</opt>
    </option>
  </param>
  <param>
    <name>Preamble</name>
    <key>preamble2</key>
    <type>enum</type>
    <hide>$version.hide_131</hide>
    <option>
      <name>T2 SISO</name>
      <key>PREAMBLE_T2_SISO</key>
      <opt>val:dvbt2.PREAMBLE_T2_SISO</opt>
    </option>
    <option>
      <name>T2 MISO</name>
      <key>PREAMBLE_T2_MISO</key>
      <opt>val:dvbt2.PREAMBLE_T2_MISO</opt>
    </option>
    <option>
      <name>T2-Lite SISO</name>
      <key>PREAMBLE_T2_LITE_SISO</key>
      <opt>val:dvbt2.PREAMBLE_T2_LITE_SISO</opt>
    </option>
    <option>
      <name>T2-Lite MISO</name>
      <key>PREAMBLE_T2_LITE_MISO</key>
      <opt>val:dvbt2.PREAMBLE_T2_LITE_MISO</opt>
    </option>
  </param>

Does anyone know of a more elegant method? I've tried some
Cheetah stuff, but that never seems to work for me at all.

best regards,
Ron

Options


reply via email to

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