|
From: | Florian Schlembach |
Subject: | [Discuss-gnuradio] Performing callback function in GRC |
Date: | Mon, 27 May 2013 14:54:08 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
void set_user_register(const uint8_t addr, const uint32_t data, size_t mboard)
function that is part of the USRP source block. When changing the two variables $user_reg_addr and $user_reg_data, GRC invokes the callback function that I have defined in the file gnuradio/gr-uhd/grc/gen_uhd_usrp_blocks.py:
<callback>set_user_register(\$user_reg_addr, \$user_reg_data,uhd.ALL_MBOARDS)</callback>
If I now change either $user_reg_addr or $user_reg_data, the callback function is executed, which is not intended. In turn, I first would like to execute the callback function after I have modified *both* variables.
Is there a convenient way to execute the callback function on a button click or something similar?
[Prev in Thread] | Current Thread | [Next in Thread] |