Trying to figure that out, I went and had a look at the source code of the wxgui slider. In fact, it had a demo mode that could be accessed when just calling the python file as main: $python gr-wxgui/python/wxgui/slider.py However, that was broken, so I fixed it; pull request against master has been sent.
Using the repaired demo I was able to find out that intermediate values are given at random intermediate points, so changing a slider from its minimum to its maximum as fast as possible yields a (seemingly) random selection of values in between. Greetings, Marcus On 10/10/2013 03:53 PM, Baokun Liu wrote:
Thanks, Martin. In fact, the event would be triggered as imagined. I want to know whether each in-between value during moving the slider would be sent to USRP, and the USRP would react to each value? Does the value have to hold on for some time before the event is triggered? Thanks, Baokun On Thu, Oct 10, 2013 at 4:03 AM, Martin Braun (CEL) <martin.br...@kit.edu <mailto:martin.br...@kit.edu>> wrote: On Wed, Oct 09, 2013 at 05:15:04PM -0400, Baokun Liu wrote: > Hi all, > > I am using USRP N210 and GRC. I have a question over changing a USRP > parameter using a slider in GRC. > > If I want to change the TX frequency from 2GHz to 4GHz using a slider, as > we know, during this process, the slider would experience many in-between > values, such as 2.1, 3, 3.55, 3.888 and so on, how USRP would react to > these in-between values? Is there some mechanism to prevent the USRP > from overloaded if I move the slider very fast? Should the slider value > hold on for some time before sending the value to USRP? Hi Baokun, haven't checked this, but are you sure the event doesn't get triggered once you let go of the slider? At least that's what I thought would happen. MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 <tel:%2B49%20721%20608-43790> Fax: +49 721 608-46071 <tel:%2B49%20721%20608-46071> www.cel.kit.edu <http://www.cel.kit.edu> KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org <mailto: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
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio