Yes. That is what we are doing. For instance, you may make your C++ executable then call it like a command from Python3. Here, I call a custom command b210col, then display thumbnails of the captured channels. I have a different version for the pi which repeats the command call five times with a 3 second delay between (for the pi 4). -page

#!/bin/bash
#
# This program captures a file containing data from
# an Ettus Research B210, two channels Rx
sudo rm /mnt/ramdisk/2021-*
sudo rm /mnt/ramdisk/RF*
cd '/mnt/ramdisk'
sudo /home/page/workarea/uhd/host/build4/b210col -g 30. -c 150000 -f 2462e+06
python3 /home/page/esi/graphram.py
cd '/home/page/'
echo end bash

On 4/15/21 9:23 PM, [email protected] wrote:

Hi there,

I am trying to measure some short bursts of Rx data with my B210 at a fairly high sampling rate. I need to perform this operation repeatedly, ideally several times per second. The advice I have received from Ettus is that this task is best implemented using C++.

The problem is that this task is part of a bigger project written entirely in Python. It is not feasible to re-write the entire project in C++ just to be able to talk to the B210.

My question is: Is there a relatively painless way that I can create a C++ function to perform the desired USRP measurement, and then call this function from Python?

Thanks,

Brendan.


_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to