pothosware / SoapySDR

Vendor and platform neutral SDR support library.
https://github.com/pothosware/SoapySDR/wiki
Boost Software License 1.0
1.12k stars 179 forks source link

Help with integrating SoapySDR into UHD #417

Closed drhill99 closed 1 year ago

drhill99 commented 1 year ago

Hello!

As the topic states, I am working on integrating SoapySDR Python API, into our system that utilizes a UHD B200/205 mini . I am currently getting the following error: "Error: Must put a numpy array in." The following are screens of Tx and Rx setup functions, and Tx and Rx streaming functions.

Tx Setup: setTx Rx Setup: setRx Tx and Rx writeStream() and readStream() functions: TxRxFunctions pothosware/SoapySDR/assets/49352267/e9e4204f-66b5-45b8-84b7-fed03aed66b5)

The commented code in the images is our current working UHD code. That is followed by the SoapySDR code that I have written as I have tried to match it with the example code for the Python API. Our generated data packet: "payload_data" from the txData() function is a numpy.ndarray complex64 data type, yet I am getting the error as I state previously. I would appreciate it if anyone was able to set me straight as to what I am doing wrong.

Thank You.