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: Marcus Müller
Subject: Re: Use C++ functions block in python
Date: Wed, 7 Apr 2021 16:59:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

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]