|From:||Nigel Steed (XENINT)|
|Subject:||[Discuss-gnuradio] Enable/Disable Processing on QT Tab Page Selection|
|Date:||Tue, 14 Feb 2017 15:27:45 +0000|
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.
|[Prev in Thread]||Current Thread||[Next in Thread]|