Thanks Derek,

I never spotted the COPY block.

Kind regards,

Nigel


From: Derek Kozel [mailto:derek.ko...@ettus.com]
Sent: Tuesday, February 14, 2017 9:37 PM
To: Nigel Steed (XENINT) <nigel.st...@xenint.com>
Cc: discuss-gnuradio@gnu.org
Subject: Re: [Discuss-gnuradio] Enable/Disable Processing on QT Tab Page 
Selection

Hello Nigel,
The Copy block is a useful block for enabling/disabling portions of flowgraphs. 
I think you will need a custom python module (which can be included in GRC) to 
do the tab detection. I think having the ability to register functions onto the 
currentChanged signal or similar would be a useful addition to the qtgui Tab 
Widget.

https://github.com/gnuradio/gnuradio/blob/master/gr-qtgui/grc/qtgui_tab_widget.xml

http://doc-snapshots.qt.io/4.8/qtabwidget.html#currentChanged
Regards,
Derek

On Tue, Feb 14, 2017 at 7:27 AM, Nigel Steed (XENINT) 
<nigel.st...@xenint.com<mailto:nigel.st...@xenint.com>> wrote:
Hi All,

I have prepared a GRC Flowgraph with several tab pages using the QT Tab Widget. 
Each tab page has different displays such as spectrograms, waterfalls etc.

Behind these tab screens I have separate processing blocks running to generate 
the data to display, all in parallel.

I am wondering if there is a neat way to only enable processing blocks when the 
corresponding tab is active ?

My first attempt at this was to use a number of throttle blocks located in 
different signal paths associated for each tab, and dynamically set the sample 
rate to 0 when the tab is not active to disable data flow – but this module 
seems to cause the entire flowgraph to stop.

My next approach is to generate an OOT Module to enable/disable data flow 
unless anyone knows of a neater way ?

Is it possible to detect what tab is selected from within GRC ?

Any comments much appreciated.

Nigel

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org<mailto:Discuss-gnuradio@gnu.org>
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to