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]

Reply via email to