For HackRF info there is this delay but it is 5 seconds..........

On Wed, Oct 20, 2021 at 9:50 PM sp h <stackprogra...@gmail.com> wrote:

> I reform for Hackrf this problem is not in python  GRC and CPP, but for
> USRP i had problem delay in CPP and python GRC
> why USRP is so bad in this situation...........
>
> On Wed, Oct 20, 2021 at 9:45 PM sp h <stackprogra...@gmail.com> wrote:
>
>> I developed some blocks for Gnuradio in CPP, I defined a multiply
>> constant for a top block in Gnuradio...
>>
>> I run tb(Top block) block, and USRP sends a signal... when USRP is
>> sending a signal I want to change the multiply constant value set to 0 1 5
>> and.....
>>
>> when i used the method...    multiplyControl->set_k(1);
>>
>> it changes the constant value and the method multiplyControl->k() return
>> constant is changed.......
>>
>> but signal USRP is changed after 20-30 seconds???????????????????
>> in GRC and Python, I had no problem but in CPP I had a problem with
>> delay? how can fix it in CPP...
>>
>> any guide or solution that I can change parameter block when is top block
>> is running........
>>
>> thanks in advance
>>
>>
>>
>>
>>
>>> gr::blocks::multiply_const_cc::sptr 
>>> multiplyControl(gr::blocks::multiply_const_cc::make(1, 1));
>>>
>>>
>>> gr::blocks::file_source::sptr file_source(
>>>
>>>                     gr::blocks::file_source::make(8,fileSelected.c_str(), 
>>> "true"));
>>>
>>>
>>>         this->tb->connect(file_source, 0, multiplyControl, 0);
>>>
>>>         if(transmitterDevice=="usrp2")
>>>
>>>         {
>>>
>>>             this->tb->connect(multiplyControl, 0, this->sinkUHD, 0);
>>>
>>>         }
>>>
>>>         else
>>>
>>>         {
>>>
>>>             this->tb->connect(multiplyControl, 0, this->sink, 0);
>>>
>>>         }
>>>
>>>

Reply via email to