The X310 radio itself does not change rates (as you have found out).  The
DDC can change the sample rate.  Try calling this function with the DDC
control.
Rob

On Fri, Mar 19, 2021 at 6:16 AM Chang, Kaixin <[email protected]>
wrote:

> when I use radio_ctrl->set_rate() of rfnoc c++ api, I get the error,
>
> Setting RX Rate: 10.000000 Msps...
> Actual RX Rate: 200.000000 Msps...
> [WARNING] [0/Radio#1] Requesting invalid sampling rate from device: 10
> MHz. Actual rate is: 200 MHz.
>
>
> I use X310 with 2 CBX120 daughterboards and I can set the rx rate to 10MHz
> when I use uhd 4.0 multiusrp class set_rx_rate()
>
>
> Could you give me some more advice please?
>
>
>
> ------------------------------
> *From:* Chang, Kaixin
> *Sent:* 18 March 2021 12:23:47
> *To:* [email protected]
> *Subject:* 答复: rfnoc error at building graph and setting sample rate
>
>
> Btw, is it possible to set up rx_rate and tx_rate separately as with uhd
> we have usrp->set_rx_rate() and usrp->set_tx_rate()?
> ------------------------------
> *发件人:* Chang, Kaixin
> *发送时间:* 2021年3月18日 11:47:37
> *收件人:* [email protected]
> *主题:* rfnoc error at building graph and setting sample rate
>
>
> Dear madam and sir from Ettus team,
>
>
> I am using X310 with 2 CBX120 and UHD main branch for rfnoc with fpga
> image usrp_x310_fpga_XG.bit. My goal is to build a loopback from tx port
> to rx port, but I have some problem to build a graph.
>
>
> For example to send from RF-A Tx/Rx port to RF-A Rx2 port, I used parameter
>     --tx-blockid='0/Radio#0' --tx-chan=0 --rx-blockid='0/Radio#1'
> --rx-chan=0"
>
> I tried to connect:
>
>     tx_stream ==> 0/DUC#0:0 ==> 0/Radio#0:0
>
>     0/Radio#0:1 ==> 0/DDC#0:1 ==> rx_stream
>
> The 0/SEP is not a block so I use streamer on its position in chain
>
> But I got an error:
>     [ERROR] [RFNOC::GRAPH::DETAIL] Node 0/Radio#0cannot handle its current
> topology! (1inputs, 1 outputs)
>     Error: RuntimeError: Graph topology is not valid!
>
> I see the default parameters
>
>     --tx-blockid='0/Radio#0' --tx-chan=0 --rx-blockid='0/Radio#1'
> --rx-chan=0"
>
> in rfnoc_radio_loopback seems to build a chain like this:
>     0/Radio#1:0==>0/DDC#1:0==>0/SEP#2:0
>     0/SEP#0:0==>0/DUC#0:0==>0/Radio#0:0
>     0/DDC#1:0==>0/DUC#0:0
>
> I don't understand why are  0/DDC#1:0 and 0/DUC#0:0 connected.
>
> Also I get an error at setting rate:
>     [WARNING] [0/Radio#1] Requesting invalid sampling rate from device:
> 10 MHz. Actual rate is: 200 MHz.
>
>
> by using:
>
>      uhd::rfnoc::radio_control::sptr radio_ctrl =
> graph->get_block<uhd::rfnoc::radio_control>(radio_ctrl_id)
>
>      radio_ctrl->set_rate(rx_rate)
>
>
> Could you please give me some advice?
>
>
> Thanks in advance
>
>
> Kasim
> _______________________________________________
> USRP-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to