of course, thank you.

This is the code (old) I am trying to adapt to use it.

       tx = usrp.sink_c(fusb_block_size = 1024, fusb_nblocks=8)
        tx.set_interp_rate(interp_rate)
        tx_subdev = (0,0)
        tx.set_mux(usrp.determine_tx_mux_value(tx, tx_subdev))
        subdev = usrp.selected_subdev(tx, tx_subdev)
        subdev.set_enable(True)
        subdev.set_gain(subdev.gain_range()[2])
        t = tx.tune(subdev.which(), subdev, freq)

On Fri, Oct 11, 2019 at 1:39 PM Nate Temple <nate.tem...@ettus.com> wrote:

> Can you post the code in question?
>
> On Fri, Oct 11, 2019 at 1:32 PM Laura Arjona <arjo...@uw.edu> wrote:
>
>> 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 size
>>
>> On Fri, Oct 11, 2019 at 1:28 PM Nate Temple <nate.tem...@ettus.com>
>> 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 <arjo...@uw.edu> 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 <nate.tem...@ettus.com>
>>>> wrote:
>>>>
>>>>> Hi Laura,
>>>>>
>>>>> It should be:
>>>>>
>>>>> from gnuradio import uhd
>>>>>
>>>>> source = 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 Temple
>>>>>
>>>>>
>>>>> On Fri, Oct 11, 2019 at 1:06 PM Laura Arjona <arjo...@uw.edu> 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 error
>>>>>>
>>>>>> * from gnuradio import usrpImportError: cannot import name usrp*
>>>>>>
>>>>>> I believe my GNU-radio installation is correct.
>>>>>> Any clue of how to fix this?
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> --
>>>>>> *Laura Arjona *
>>>>>> _______________________________________________
>>>>>> Discuss-gnuradio mailing list
>>>>>> Discuss-gnuradio@gnu.org
>>>>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>>>>
>>>>>
>>>>
>>>> --
>>>> *Laura Arjona *
>>>> Washington Research Foundation Innovation Postdoctoral Fellow in
>>>> Neuroengineering
>>>>
>>>> *Paul G. Allen School of Computer Science & Engineering*
>>>> 185 E Stevens Way NE
>>>> University of Washington
>>>> Seattle, WA 98195-2350
>>>>
>>>
>>
>> --
>> *Laura Arjona *
>> Washington Research Foundation Innovation Postdoctoral Fellow in
>> Neuroengineering
>>
>> *Paul G. Allen School of Computer Science & Engineering*
>> 185 E Stevens Way NE
>> University of Washington
>> Seattle, WA 98195-2350
>>
>

-- 
*Laura Arjona *
Washington Research Foundation Innovation Postdoctoral Fellow in
Neuroengineering

*Paul G. Allen School of Computer Science & Engineering*
185 E Stevens Way NE
University of Washington
Seattle, WA 98195-2350
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to