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?
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?
It sounds like when you say “in between” you mean the period of time
from
when the user stop dragging the slider and the next time they stop
dragging
the slider.
In general, when people ask this question the area of focus is the
period
of time when they are dragging the slider.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.