> ## Documentation Index
> Fetch the complete documentation index at: https://docs.embedder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Siglent spectrum analyzer

> Run frequency sweeps on a Siglent SSA3015X Plus over LAN, view them in the Monitor's Spectrum Analyzer tab, and script captures with spectrum_* helpers.

Use a spectrum analyzer to check RF emissions, clock harmonics, switching-regulator noise, and other frequency-domain behavior. Embedder supports the **Siglent SSA3015X Plus**. Sweep from the Monitor's **Spectrum Analyzer** tab, ask Embedder, or run a [hardware script](https://docs.embedder.com/debug-mode/hardware-scripts.md).

## Check the model

Only the SSA3015X Plus is supported. Embedder checks the analyzer's identity when it connects. Any other model shows **Unsupported** in the Monitor.

| Item | Support |
| - | - |
| Frequency range | 0 to 1.5 GHz with a nonzero span. Rated instrument performance begins at 9 kHz. |
| Measurement | Swept spectrum in dBm with positive-peak detection. |
| Not supported | Zero span, IQ, vector network analysis, modulation analysis, and tracking-generator control. Embedder never turns on the tracking generator output. |

Support follows Siglent's SSA3000X Plus programming guide and is tested against a simulated analyzer. The first time you use your analyzer and firmware, check a sweep against a known signal.

## Connect

The analyzer connects over LAN on SCPI port `5025`. Embedder needs Python 3 on the computer it runs on, and offers to install it during setup. You don't need Siglent or VISA software.

1. Put the analyzer on a network the Embedder host can reach.
2. In the Monitor, select **+** to open a new tab.
3. Select the analyzer under **On the bench**, or type its address, such as `192.168.1.20`, in the search field and select **Connect to** for that address.
4. The **Spectrum Analyzer** tab connects automatically when the analyzer is **Ready**. If the toolbar shows **Set up & connect**, for example because Python 3 is missing, select it to approve setup.

You can also add an analyzer from the tab: open the device chip, choose **Enter address…**, type an address such as `192.168.1.20` or `host:5025`, and select **Add**.

The device chip shows the analyzer's state. The toolbar offers **Connect** when the analyzer isn't connected. The **⋯** (**Device actions**) menu holds **Disconnect**, **Rename device**, **Enter address…**, **Rescan devices**, and **Forget device** for a saved analyzer that isn't currently detected. See [Connect a bench instrument](https://docs.embedder.com/debug-mode/overview.md#connect-a-bench-instrument) for device states.

## Run a sweep in the Monitor

The **Setup** panel holds the sweep settings. To show or hide it, select the **Analyzer setup** chip, the settings summary next to the device chip in the toolbar.

| Section | Field | Unit | Range | Default |
| - | - | - | - | - |
| **Frequency** | **Start** | MHz | 0 to 1500 | 90 |
| **Frequency** | **Stop** | MHz | 0 to 1500 | 110 |
| **Sweep** | **Resolution BW** | Hz | 1 to 1,000,000 | 10,000 |
| **Sweep** | **Sweep timeout** | s | 1 to 300 | 30 |
| **Amplitude** | **Reference level** | dBm | -100 to 30 | 0 |

The stop frequency must be higher than the start frequency. Video bandwidth follows the resolution bandwidth, and attenuation stays under the analyzer's control. When you start a sweep, the tab remembers these settings for that analyzer.

Then choose a capture control:

| Control | What it does |
| - | - |
| **Single** | Acquires one sweep. |
| **Run** | Sweeps repeatedly until you select **Stop**. Settings are locked while sweeps run. |
| **Stop** | Stops sweeping and keeps the saved sweeps. |

The **Peak** readout on the chart shows the amplitude and frequency of the strongest point in the selected sweep, with the span, sweep number, and time of the sweep. To inspect part of the span, drag or scroll on the chart, or use the zoom buttons on it. Select **Reset zoom**, or double-click the chart, to return to the full span.

To step through a recording, use the previous and next **Sweep** controls or type a sweep number. Select **Latest** to follow the latest completed sweep.

Embedder saves every sweep as it completes. Open capture history to reopen earlier recordings without the analyzer connected.

## Ask Embedder for a sweep

Name the frequency range, resolution bandwidth, reference level, and how many sweeps you need:

```text theme={"theme":"css-variables"}
Connect to the spectrum analyzer and sweep 90 to 110 MHz with 10 kHz RBW
and a 0 dBm reference level. Report the peak frequency and amplitude.
```

## Script a sweep

Use the `spectrum_*` helpers in a [hardware script](https://docs.embedder.com/debug-mode/hardware-scripts.md):

```python theme={"theme":"css-variables"}
import json

spectrum_connect(timeout_s=30)  # analyzer selected in the Monitor
spectrum_configure(start_hz=90e6, stop_hz=110e6, rbw_hz=10000, reference_dbm=0)
result = spectrum_capture(name="RF check")
spectrum_disconnect()
print(json.dumps({"success": True, "summary": "Spectrum captured", "data": result}))
```

| Helper | Purpose |
| - | - |
| `spectrum_connect(host=None, *, port=None, timeout_s=10.0)` | Connect and verify the model. With no host, uses the analyzer selected in the Monitor, then `EMBEDDER_SPECTRUM_HOST`. `timeout_s` accepts up to 300 seconds. |
| `spectrum_configure(*, start_hz, stop_hz, rbw_hz=10000, vbw_hz=None, reference_dbm=0, attenuation_db=None)` | Set the sweep. VBW defaults to the RBW, and `attenuation_db` accepts 0 to 51 dB. Returns the applied settings, because firmware can round bandwidths. |
| `spectrum_capture(*, name="Spectrum recording")` | Acquire and save one sweep. Repeated calls on one connection add numbered sweeps to the same recording. Returns the capture ID, sweep number, point count, peak frequency and amplitude, and applied settings. |
| `spectrum_settings()` | Read the analyzer's current settings. |
| `spectrum_screenshot(path)` | Save a BMP or PNG screenshot. |
| `spectrum_query(command)` / `spectrum_write(command)` | Send a raw SCPI command. |
| `spectrum_disconnect()` | Restore the original continuous-sweep setting and close the connection. |

Attenuation stays under instrument control unless you pass `attenuation_db`. For long sweeps, increase `timeout_s`. Without a Monitor selection, pass the address, or set it in the environment that launches Embedder or VS Code:

```bash theme={"theme":"css-variables"}
export EMBEDDER_SPECTRUM_HOST=192.168.1.20
```

## Troubleshoot

* **No analyzer:** check the IP address and network, then choose **Rescan devices** from the **⋯** (**Device actions**) menu, or type the address in a new tab's search field.
* **Unsupported:** only the SSA3015X Plus is supported.
* **Sweep timeout:** increase **Sweep timeout** or `timeout_s`, narrow the span, or widen the RBW.
* **Trace mode error:** leave trace 1 in write mode on the analyzer, not a hold, average, or view mode. Each capture needs a fresh trace.
* **Settings changed during the sweep:** leave the analyzer's front panel alone while Embedder sweeps. Embedder discards a sweep whose settings changed.
* **Capture failed:** Embedder also fails a sweep on malformed data or command errors. After a connection error, reconnect before retrying.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.