discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Use C++ functions block in python


From: COURANT Frederique - Contractor
Subject: RE: Use C++ functions block in python
Date: Thu, 8 Apr 2021 15:30:05 +0000

Thanks Marcus for your help.

I'm actually using GNU Radio 3.8.
I would like to have more information about swig please.
I need to create swig interface and use this command swig -c++ -python 
ligneretard.i or I need to go in swig file and create build folder for 
compiling ?

Thanks.

Best regards.

Fred

-----Message d'origine-----
De : Discuss-gnuradio 
<discuss-gnuradio-bounces+frederique.courant=external.thalesgroup.com@gnu.org> 
De la part de Marcus Müller
Envoyé : mercredi 7 avril 2021 17:00
À : discuss-gnuradio@gnu.org
Objet : Re: Use C++ functions block in python

Dear Fred,

assuming you use GNU Radio 3.9:
when you look into your OOT's python/ folder, you'll find a bindings/ 
subfolder, in which there are C++ files for each of the blocks you wrote. 
You'll have to add the function you want to call from Python there! GNU Radio 
ships with bindtool, which helps with that!

assuming you're using GNU Radio 3.8:
You'll find that SWIG should be generating wrappings for you that should just 
work, if your methods are GR_API.

We'll need your verbatim error message if we are to help here!

Best regards,
Marcus

On 07.04.21 16:24, COURANT Frederique - Contractor wrote:
> Hi Users,
> 
>  
> 
> I have create a block name ligneretard and I would like access to my 
> customs register present in my own FPGA.
> 
> I have develop my functions in ligneretard_block_ctrl_impl.cpp but 
> when I tried to call this functions with my python code generate with 
> gnuradio it doesn't work.
> 
>  
> 
> I also tried to do this with ctypes but I have the same error.
> 
>  
> 
> Someone has ever try to do this with success please ?
> 
>  
> 
> Thanks.
> 
>  
> 
> Bests regards.
> 
>  
> 
> Fred
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]