Skip to content

Save SWR Sweep Data to CSV and Display Resonance Metrics #2241

Description

@rnash2

Request preparation

  • I used an AI assistant to help structure this request
  • I checked for existing issues covering the same feature

What would you like?

Save SWR Sweep Data to CSV and Display Resonance Metrics
What

  1. Allow user to select band limits based on their operating privileges.

  2. Allow users to export SWR sweep results to a .csv file, with an auto-generated filename that includes date, time, and band.

  3. Optionally enhance the sweep feature to:

Automatically identify and display the resonant frequency
Calculate and display antenna bandwidth for a user-defined SWR threshold (e.g., 2:1)
Why

This prevents operators from transmitting outside frequencies they are not authorized to transmit.

This enables operators to:

Compare current and historical SWR sweeps to track antenna changes over time
Use tabulated data directly in spreadsheets for antenna tuning analysis
Quantitatively determine how adjustments (element length, matching, etc.) affect resonance and bandwidth

Without export capability, sweep data is effectively transient and cannot be leveraged for deeper analysis or repeatable tuning workflows.

How Other Clients Do It
SmartSDR: Provides SWR visualization but limited direct export; users often rely on external tools
GQRX / SDR++: While not SWR-focused, they commonly allow data export or logging for analysis
Antenna analyzers (RigExpert, NanoVNA tools):
Export sweep data to CSV
Display resonance and bandwidth automatically
Provide markers for SWR thresholds
Suggested Behavior
In the SWR sweep UI (likely within an Applet such as an SWR or Tx-related panel):
Add a “Save CSV” button after a sweep completes

Default filename format:

swr_sweep_.csv

CSV contents:

Frequency (Hz), SWR
Add optional UI elements:
Checkbox: “Show resonance & bandwidth”
Input field: “Bandwidth SWR threshold” (default: 2.0)
Display results in the sweep graph:
Marker at minimum SWR (resonant frequency)
Highlighted frequency span where SWR ≤ threshold
Numeric readouts in the panel (e.g., in RxApplet or a dedicated Sweep panel)
Protocol Hints

Unknown — needs research
(Likely derived from existing sweep data already collected via FlexLib; no new radio commands required)

Acceptance Criteria
User can export SWR sweep data to a CSV file with correct naming format
CSV contains frequency and SWR data for the full sweep range
UI displays resonant frequency (minimum SWR point)
UI calculates and displays bandwidth for a user-defined SWR threshold
Feature works consistently across supported radios and sweep ranges
Suggested Labels
enhancement
GUI
spectrum
protocol

Metadata

Metadata

Assignees

No one assigned

    Labels

    New FeatureNew feature requestenhancementImprovement to existing featureexternal devicesFlexControl, MIDI, serial port, USB peripheralsgood first issueGood for newcomersmaintainer-reviewRequires maintainer review before any action is takenpriority: lowLow priority

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions