Hi Maria, I don't know the exact problem, but I want to mention that UHD "properties" can behave in unexpected ways. In my opinion, they are not well suited to providing a changing property value if UHD is unaware that a change has occurred. The UHD "get" function of the property does not execute unless UHD thinks that the property is stale (dirty). If UHD thinks that the property is not stale, it just returns the previous value. I think that you can tell UHD that the property is "always dirty", but then this will cause UHD to read it frequently. I have not found a way to tell UHD to execute my "get" property function only when I query the property.
Since I do not use gnuradio, I don't know if using "properties" is the only way available to you. By using UHD directly, I can just call "peek" or whatever function I create whenever I want to read my FPGA register. If this is possible from gnuradio, this may be your answer. Otherwise, I have found a workaround by calling the "set" property function (with a bogus value that is ignored) which can be used to cause the "peek" to execute and update the property value. You just need to make sure that your bogus value is not equal to the current property value or else UHD will think it doesn't need to execute anything. Rob On Tue, Dec 12, 2023 at 9:59 AM Marcus D. Leech <[email protected]> wrote: > On 12/12/2023 09:41, [email protected] wrote: > > Hi Marcus, > > Thanks for your answer. > So, there shouldn’t be any problem on the UHD side with the reading, is a > gnuradio thing, right? > From what I see on the Python code generated for the Function Probe, it > calls the “get_int_property” register function, which seems the one that is > used for the register reading in UHD, but I will cross-post the question in > discuss-gnuradio so they can help me clarify. > > Kind Regards, > > Maria > > I didn't immediately see anything, but I'm not an RFNOC expert. I > suggested the diagnostics within your flow-graph just to > make sure that it is actually getting called. Just put a diagnostic > print inside your "get_int_property" function. > > > > _______________________________________________ > USRP-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] >
_______________________________________________ USRP-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
