|
From: | Nate Temple |
Subject: | Re: [Discuss-gnuradio] ImportError: cannot import name usrp |
Date: | Fri, 11 Oct 2019 13:39:14 -0700 |
Thank you Nate.Yes, that is the configuration I had before. But I using someone else's code for a different USRP, and getting errors with the usrp_sink_c to set the fusb block sizeOn Fri, Oct 11, 2019 at 1:28 PM Nate Temple <address@hidden> wrote:You should pass in the cpu_format as an arg such as below:sink = uhd.usrp_sink(
",".join(("", "")),
uhd.stream_args(
cpu_format="fc32",
channels=range(1),
),
)On Fri, Oct 11, 2019 at 1:16 PM Laura Arjona <address@hidden> wrote:Got it, thank you!However, usrp_sink_c is not supported anymore? Get an error there too.tx = usrp_sink_c(fusb_block_size = 1024, fusb_nblocks=8)On Fri, Oct 11, 2019 at 1:11 PM Nate Temple <address@hidden> wrote:Hi Laura,It should be:from gnuradio import uhdsource = uhd.usrp_source(...)...I would suggest to try building out a basic flowgraph in GRC and then use the generate button and checkout the source made from it.Regards,Nate TempleOn Fri, Oct 11, 2019 at 1:06 PM Laura Arjona <address@hidden> wrote:_______________________________________________Hello,I am using a usrp b200-mini, and I am trying to define the sink as follows:tx = usrp_sink_c(fusb_block_size = 1024, fusb_nblocks=8)However, I get the errorfrom gnuradio import usrp
ImportError: cannot import name usrpI believe my GNU-radio installation is correct.Any clue of how to fix this?Thank you.--Laura Arjona
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--Laura ArjonaWashington Research Foundation Innovation Postdoctoral Fellow in NeuroengineeringPaul G. Allen School of Computer Science & Engineering185 E Stevens Way NEUniversity of WashingtonSeattle, WA 98195-2350--Laura ArjonaWashington Research Foundation Innovation Postdoctoral Fellow in NeuroengineeringPaul G. Allen School of Computer Science & Engineering185 E Stevens Way NEUniversity of WashingtonSeattle, WA 98195-2350
[Prev in Thread] | Current Thread | [Next in Thread] |