[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] gr-uhd timed command messages
From: |
Nigel Steed |
Subject: |
Re: [Discuss-gnuradio] gr-uhd timed command messages |
Date: |
Fri, 4 Mar 2016 00:39:51 +0000 |
Hi Martin,
I have put the following code into my block.
d_rxCommand = pmt::make_dict();
d_rxCommand = pmt::dict_add(d_rxCommand, pmt::mp("time"),
pmt::mp(0.5));
message_port_pub(pmt::mp("rx_freq_msg"), d_rxCommand );
It sends the message to the UHD Sink. But I get this error at run time:
thread[thread-per-block[5]: <block gr uhd usrp source (1)>]: pmt_cdr:
wrong_type : 1
Any ideas ? I am trying to auto step the frequencies, and currently have my own
block to generate frequency messages which works fine. I am now trying to
implement the time commands. Is there any other way to do it ?
Thanks,
Nigel
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Martin Braun
Sent: Wednesday, March 2, 2016 9:24 PM
To: address@hidden
Subject: Re: [Discuss-gnuradio] gr-uhd timed command messages
When using messages, simply add a 'time' key to the command dictionary, and it
will be set for the command you're calling. The time stamp value, is a
long/double pair, for full and fractional time. Example:
{'freq': 1e9, 'time': (100, 0.1)}
If this is your message, it will set the frequency to 1 GHz at time 100.1.
Cheers,
Martin
On 03/02/2016 05:46 AM, Nigel Steed wrote:
> Hi,
>
>
>
> Anyone know or managed to implement the time command using a message
> port to the UHD Source Block ?
>
>
>
> I believe time commands are not implemented in the latest GNURadio
> gr-uhd ? Is that correct ?
>
>
>
> Thanks,
>
>
>
> Nigel
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- [Discuss-gnuradio] gr-uhd timed command messages, Nigel Steed, 2016/03/02
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Martin Braun, 2016/03/02
- Re: [Discuss-gnuradio] gr-uhd timed command messages,
Nigel Steed <=
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Marcus Müller, 2016/03/04
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Nigel Steed, 2016/03/04
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Marcus Müller, 2016/03/04
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Nigel Steed, 2016/03/04
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Marcus D. Leech, 2016/03/04
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Nigel Steed, 2016/03/08
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Martin Braun, 2016/03/08
- Re: [Discuss-gnuradio] gr-uhd timed command messages, Martin Braun, 2016/03/04