I will add that if your waveform is repeating (I noticed the --repeat
flag), you can alternatively use the Replay block to playout your Tx
waveform. With this block you load the samples in the Replay block memory
in non-realtime and then you can initiate the playout to the radio and
avoid all underruns.  But, if your waveform is non-repeating or not known
in advance, this won't help.
Rob

On Wed, Jul 30, 2025 at 6:09 AM Martin Braun <martin.br...@ettus.com> wrote:

> Any answer is a variation of "get a better computer" and "get better
> software". tx_samples_from_file is an example that is meant to show how to
> use UHD APIs, although 20 Msps is pretty slow and this tool should be
> perfectly capable of handling that. You can even safely transmit 20 Msps
> over 1 GbE. You could try mounting your reference file on a ramdisk. Also,
> run benchmark_rate to make sure your connection is capable of handling the
> speed. You can also check out
> https://kb.ettus.com/USRP_Host_Performance_Tuning_Tips_and_Tricks,
> although those tuning tips are typically meant for higher rates (and for 10
> or 100 GbE).
>
> --M
>
> On Wed, Jul 30, 2025 at 8:46 AM <gech...@gmail.com> wrote:
>
>> Hello,
>>
>> I’m using USRP X310 devices on both the transmitting and receiving ends
>> to handle a data stream. During transmission, I run the following command:
>>
>> /usr/lib/uhd/examples/tx_samples_from_file --freq 2484e6 --rate 20e6
>> --gain 10 --wirefmt sc16 --ref=internal --file
>> /home/ubuntutx/uhd/examples/tx_transmit_data.dat --repeat
>>
>> I encounter consistent underflow issues (indicated by "U" messages in the
>> console), regardless of the sample rate used. Could you please advise how
>> to modify my setup or code to enable stable transmission and reception
>> without these underflow errors?
>>
>> Thank you,
>>
>> Getaneh Berie
>> _______________________________________________
>> 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