Yes, I think that moving out of gnuradio - at least temporarily - is a good idea. Once you have the block working directly with UHD, it will make the transition to gnuradio easier.
That said, I did take a quick glance at gnuradio and noticed that the rfnoc_ddc class has a function "set_freq" and I noticed similar functions on other rfnoc block classes. This must mean that it is possible to declare & define & utilize a custom function for a specific rfnoc block in gnuradio. Thus, perhaps you could define a "get_register" function for your rfnoc block that simply peeks your register. Finally, the access error you got using set_int_property is a UHD generated error in "property.hpp" (not generated by gnuradio). It might imply that you are accessing the UHD property before it is initialized. See this page <https://files.ettus.com/manual/page_properties.html#props_resolvers> for a description of UHD properties in general as well as the "is_valid" function which can be used to determine if the property has been initialized. Of course, if you abandon using properties, this is irrelevant. On Wed, Dec 13, 2023 at 5:43 AM <mamuk...@gmail.com> wrote: > Hi Rob, > > Thanks for the clarification. I tried to set the test_reg value by calling > the set_int_property with a random value from the python script but I got > this error: > > Traceback (most recent call last): > > File "registro_gain.py", line 360, in <module> > > main() > > File "registro_gain.py", line 338, in main > > tb.start() > > File "/usr/local/lib/python3/dist-packages/gnuradio/gr/top_block.py", line > 111, in start > > top_block_start_unlocked(self._impl, max_noutput_items) > > File "/usr/local/lib/python3/dist-packages/gnuradio/gr/runtime_swig.py", > line 4832, in top_block_start_unlocked > > return _runtime_swig.top_block_start_unlocked(r, max_noutput_items) > > RuntimeError: RuntimeError: AccessError: Attempting to write to property > `test_reg' without access privileges! > > I thought that occurred because I hadn’t defined the set_int_property > function inside my block controller. So I included the method and now I > have the following error: > > [ERROR] [RFNOC::GRAPH] Caught exception while initializing graph: > RuntimeError: Attempting to double-register property: test_reg[USER:0] > > I don’t know any other mechanism to change that signal in GNURadio so I > will try to translate my graph to use the uhd API directly > > > Kind Regards, > > Maria > > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-le...@lists.ettus.com >
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com