Thanks a lot.
It works well after the fix.

-Uri



On Fri, Jan 27, 2023 at 9:54 PM Wade Fife <wade.f...@ettus.com> wrote:

> Hi Uri,
>
> Thanks for reporting this! You are correct. Here's a patch for UHD-3.0
> (see below) to fix it until we get a permanent solution in UHD. The record
> was working correctly, but it was replaying the same buffer in memory for
> all channels.
>
> Thanks,
>
> Wade
>
>
> diff --git a/host/examples/python/replay_capture.py
> b/host/examples/python/replay_capture.py
> index c540c3034..02f582d2b 100755
> --- a/host/examples/python/replay_capture.py
> +++ b/host/examples/python/replay_capture.py
> @@ -175,9 +175,10 @@ def run_capture(graph, replay, radio_chan_pairs,
> num_samps, rate,
>      )
>      num_samps = num_bytes // 4
>      num_ports = len(radio_chan_pairs)
> -    ## Arm replay block for recording
> +    ## Arm replay block for recording and set playback region
>      for idx in range(len(radio_chan_pairs)):
>          replay.record(idx * mem_stride, num_bytes, idx)
> +        replay.config_play(idx * mem_stride, num_bytes, idx)
>      ## Send stream command to all radios
>      # This 'rate ratio' would be better handled by RFNoC. If the replay
> block
>      # were to submit the stream command to the radio, this would not be
> necessary.
>
>
> On Wed, Jan 25, 2023 at 6:37 PM Marcus D. Leech <patchvonbr...@gmail.com>
> wrote:
>
>> On 25/01/2023 16:16, Uri M wrote:
>>
>> Hi all,
>>
>> I'm running into some trouble with the replay_capture.py example. When I
>> try to use multiple channels, I keep getting the same samples in all of
>> them.
>>
>> I've tried all the file file format options.
>>
>> Note that the samples of channel 1 are good.
>>
>> If anyone has any ideas, I'd really appreciate the help.
>>
>> Thanks!
>>
>> -Uri
>>
>> _______________________________________________
>> USRP-users mailing list -- usrp-users@lists.ettus.com
>> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>>
>> What radio did you use it with, and what arguments did you supply?
>>
>>
>> _______________________________________________
>> USRP-users mailing list -- usrp-users@lists.ettus.com
>> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>>
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to