Note that it's generally possible to just implement a setter function and
define a <callback> in the GRC XML, but then you would have to care about
thread safety yourself... And having an asynchronous message passing interface
is nice, anyway :)
Best regards
Marcus
Am 5. Juli 2016 15:57:04 MESZ, schrieb redsals...@openmailbox.org:
>On 2016-07-05 14:42, Marcus Müller wrote:
>> Hi,
>> I'd generally recommend that you add a message handler to your
>block,
>> which can be connected via message passing to other blocks. That way,
>> you'll have something that is thread-safe (which is necessary,
>because
>Great ! thanks a lot Marcus :)
>
>I saw that some blocs could do it without messages (like UHD blocs),
>but
>the code implementation is quite disturbing.
>
>
>> your xmlrpc server will run in another thread than your block's
>'work'
>> method).
>>
>> Then, use the "Variable to Message" block from [1] to allow for a
>> simple way of sending that message by modifying a Python variable
>with
>> the xmlrpc server.
>>
>> Best regards,
>> Marcus
>>
>> [1] https://github.com/marcusmueller/gr-msgtools [2]
>>
>> Am 5. Juli 2016 11:35:11 MESZ, schrieb redsals...@openmailbox.org:
>>
>>> Hi everybody,
>>>
>>> I would like to know how a parameter can be updated during the
>>> execution
>>> of a custom C++ block (I have some data to change during the
>>> execution
>>> of the flowgraph with XMLRPC).
>>>
>>> Do someone already did it ? :)
>>>
>>> Thanks in advance !
>>>
>>> Best regards,
>>>
>>> -JM
>>>
>>> -------------------------
>>>
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio [1]
>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>> Links:
>> ------
>> [1] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> [2] https://github.com/marcusmueller/gr-msgtools
>
>
>_______________________________________________
>Discuss-gnuradio mailing list
>Discuss-gnuradio@gnu.org
>https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio