[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Error in Python file generated by GnuRadio Compan
From: |
PIGUET Damien |
Subject: |
Re: [Discuss-gnuradio] Error in Python file generated by GnuRadio Companion |
Date: |
Fri, 9 Jan 2015 14:36:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
Dear Sebastian,
Thank you very much for your help.
I checked my XML block file and it uses gray_code with lower 'g', this
is why I don't understand why GRC generates a Python code with upper G.
Moreover, the Pythong code generated by GRC calls the Demodulator, hence
it should pass the parameter value like it does for the other blocks,
not its name or am I wrong ?
Here is my block XML:
<?xml version="1.0"?>
<block>
<name>My QPSK Demodulator</name>
<key>tutorial_my_qpsk_demod_cb</key>
<category>Tutorial</category>
<import>import tutorial</import>
<make>tutorial.my_qpsk_demod_cb($Gray_code)</make>
<param>
<name>Gray Code</name>
<key>gray_code</key>
...
</block>
Thanks again,
Damien
On 09. 01. 15 15:27, Koslowski, Sebastian (CEL) wrote:
> * PGP Signed by an unknown key
>
> On 01/09/2015 02:31 PM, PIGUET Damien wrote:
>> self.tutorial_my_qpsk_demod_cb_0 = -------->
>> cannot find 'Gray_code': tutorial.my_qpsk_demod_cb($Gray_code)
>> <--------
> Looks like your block XML should read
> "tutorial.my_qpsk_demod_cb($gray_code)" in the make tag.
> (Notice the lower case 'G'). Parameter keys are case-sensitive.
>
> Sebastian
> ||
> * Unknown Key
> * 0xF2664303