diff options
author | iprivit <41305661+iprivit@users.noreply.github.com> | 2019-10-28 13:58:11 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-13 14:07:15 -0800 |
commit | eb448043a9d958fd87bc6494f67004a7c33851fb (patch) | |
tree | 7996fd68d73a02e861655d034cc79bc361e28e58 /host/examples | |
parent | 21ed72b5a219c7d3d4cc87afa61410aff56f30a7 (diff) | |
download | uhd-eb448043a9d958fd87bc6494f67004a7c33851fb.tar.gz uhd-eb448043a9d958fd87bc6494f67004a7c33851fb.tar.bz2 uhd-eb448043a9d958fd87bc6494f67004a7c33851fb.zip |
python: MultiUSRP: Fix send_waveforms()
The send_waveform() function takes the waveform_proto array and if it
has only 1 channel, explicitly reshapes it to be
(1, waveform_proto.size), or uses np.tile to replicate the
waveform_proto array over X channels. It then proceeds to loop over the
waveform_proto array, but attempts to do so over the channel dimension
instead of looping over the actual samples. This results in sending the
entire waveform_proto array regardless of the duration specified.
The fix is to specify the dimension in which it crops, and not crop in
dimension of the channels.
Diffstat (limited to 'host/examples')
0 files changed, 0 insertions, 0 deletions