Which platform are you running on? -- M
On 01/12/2017 06:55 AM, Jacqueline.Walker wrote: > Hi Kartik, > > > > Well, no I would think there ought not be an error in the tutorial, but > the fact remains that if I run the ‘if_else_mod.py’ from the > ~/solutions/gr-tutorial/examples/tutorial3/python/ folder I get the > exact same runtime errors, so it might be something in the build. I > attach my own if_else_mod.py file which has been produced by my firstly > generating if_else.py from the flowgraph which I have built as > instructed in the tutorial and then doing exactly as instructed in the > tutorial the modifications to the def _variable_function_probe_0_probe():. > > I also attach the ‘solutions’ version of the if_else_mod.py (called > if_else_mod_orig.py) and a file which summarises investigations made so > far and the results of Kompare to discover the differences in the code. > Clearly the grc generates code which differs somewhat from the samples > in the ~/python directory (which are from an older version, clearly). > > I don’t know if it is anything to do with the ‘tb = if_else’ line – I am > about to test that out. > > > > Thanks > > Regards > > Jacqueline > > > > > > *From:*Kartik Patel [mailto:kartikpatel1...@gmail.com] > *Sent:* 11 January 2017 21:32 > *To:* Jacqueline.Walker; discuss-gnuradio@gnu.org > *Subject:* Re: [Discuss-gnuradio] guided tutorials - problem with tutorial 3 > > > > Hi Jacqueline, > > I don't think there's error in the tutorial. Please send your GRC or > Python file. > > Thank you. > > Regards, > Kartik Patel > > > > On 10:54PM, Wed, Jan 11, 2017 Jacqueline.Walker <jacqueline.wal...@ul.ie > <mailto:jacqueline.wal...@ul.ie>> wrote: > > Hello, > > > > Trying the tutorial three – python in gnu radio and the ‘if_else’ > mod file. I get this run-time error even with the tutorial/solutions > file so it might be a build thing. > > > > Basically when it runs with the added if val == 1: block it raises an > > Attribute error top_block_sptr has no attribute named analog_sig > _/x1/_source block – (sorry not correctly copied but you get the > idea hopefully) – in other words it does not recognise the analog > signal source that you have and that you are trying to modify the > freq and/or amplitude of under control of the simple if/else using > the probe_signal variable as outlined in the tutorial. > > Is there something missing in the build or is it some error in the > file/instructions in the tutorial? > > > > Thanks > > Jacqueline > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org <mailto:Discuss-gnuradio@gnu.org> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- > > Regards, > Kartik Patel > B.Tech. Final Year > Electronics and Communication Engineering > Indian Institute of Technology, Roorkee > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio