discuss-gnuradio
[Top][All Lists]
Advanced

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

RE: Calling GR Functions in a Sync Block


From: Adam Gorski
Subject: RE: Calling GR Functions in a Sync Block
Date: Mon, 7 Dec 2020 14:14:55 +0000

Fantastic, thank you!

 

Adam Gorski

Virginia Tech Applied Research Corporation (VT-ARC)

Lead Communications Engineer

410-818-3188

 

From: Discuss-gnuradio <discuss-gnuradio-bounces+adam.gorski=vt-arc.org@gnu.org> On Behalf Of Jeff Long
Sent: Sunday, December 6, 2020 12:40 PM
To: discuss-gnuradio@gnu.org
Subject: Re: Calling GR Functions in a Sync Block

 

from gnuradio import analog

agc = analog.agc2_cc()

 

On Sun, Dec 6, 2020 at 11:58 AM Adam Gorski <Adam.Gorski@vt-arc.org> wrote:

Community,

 

Is there any way to call GR functions from within a sync block? I am attempting to put code from a deprecated hierarchical block (dbpsk_demod) into a custom sync block that carries out dbpsk demodulation from within a sync block. I am using the sync block because I need to demodulation to occur only for specific packets that are tagged by a preceding block.

 

Any calls to gr.xxxx() result in an error, ex. ‘module’ object has no attribute ‘agc2_cc’.

 

As an alternative I figured perhaps I can add the tag selection code from the sync block into the hierarchical block, however I am not aware how to combine the work function of the sync block with the hierarchical block code.

 

Any help is appreciated, thank you!

 

Adam Gorski

Virginia Tech Applied Research Corporation (VT-ARC)

Lead Communications Engineer

410-818-3188

 


reply via email to

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