You can have two (or more) instances of the GNU Radio Companion QT GUI Vector Sink block in the same flowgraph
Yes — you can have two (or more) instances of the GNU Radio Companion QT GUI Vector Sink block in the same flowgraph, but there are a few practical considerations to make it work smoothly:
✅ What Works
- Multiple
QT GUI Vector Sinkblocks can run in the same top block. - Each will open in its own tab within the same GUI window (by default).
- You can also configure them to appear in separate windows if you prefer (by unchecking “GUI Hint” tab grouping or using different GUI hint values).
🧰 Key Points to Check
- GUI Hints:
- In the block properties, use the
GUI Hintfield to control layout. - For example:
tab@0→ first tabtab@1→ second tab- Or use something like
@widget 0 0 1 1and@widget 1 0 1 1to position them in a grid.
- In the block properties, use the
- Sample Rate and Vector Length:
- Ensure both sinks receive data at rates they can handle in real time.
- Mismatched vector lengths or rates may cause GUI lag.
- Threading / Performance:
- Each vector sink consumes CPU and GUI thread resources.
- Two sinks are fine for most modern CPUs, but more can start to bog things down.
- Minimize unnecessary updates by increasing the “Update Rate” parameter if needed.
- Naming:
- Give each sink a clear title (e.g., “Antenna 1 Spectrum” vs. “Antenna 2 Spectrum”) to keep the GUI organized.
- Start-up:
- All sinks must initialize properly; if one hangs during start, it can prevent the GUI from showing up.
- This is rare but can happen with very high sample rates.
🧪 Example Use Case
If you’re doing interferometry with two antennas:
- Use two
QT GUI Vector Sinkblocks. - Feed each from a different channel of your SDR (e.g., SDRplay RSPduo).
- Set GUI hints:
·Sink 1: @widget 0 0 1 1
·Sink 2: @widget 1 0 1 1
- Result: both plots appear side-by-side in the same GUI window.
⚠️ One Common Pitfall
Don’t put them inside hierarchical blocks if you expect them to share the same GUI window — Qt widgets don’t display properly from inside hier blocks. Place them at the top-level flowgraph.
✅ Summary:
Yes, multiple QT GUI Vector Sinks are fully supported in one GRC flowgraph — just manage GUI hints, rates, and performance carefully.