> ## 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.

# SCPI oscilloscopes

> Capture analog waveforms over LAN from supported Rigol, Siglent, Tektronix, Keysight, Rohde & Schwarz, Teledyne LeCroy, and GW Instek bench scopes.

Connect a supported bench oscilloscope over your network, then capture analog waveforms from the Monitor's **Oscilloscope** tab, by asking Embedder, or from a [hardware script](https://docs.embedder.com/debug-mode/hardware-scripts.md). Every supported vendor uses the same tab controls and the same `scope_*` script helpers. For Siglent model details and SDS800X HD advanced triggers, see [Siglent oscilloscopes](https://docs.embedder.com/debug-mode/siglent.md).

## Check the model

Embedder reads the scope's identity when it connects and accepts only the exact models it supports. A model that isn't listed shows **Unsupported** in the Monitor, even when its name looks similar to a supported one, and Embedder doesn't change its settings.

| Vendor | Families |
| - | - |
| Rigol | DS1000Z (DS1054Z, DS1074Z, DS1104Z, Z Plus, and Z-S Plus), DS1202Z-E, DHO800, DHO900, DHO1000 |
| Siglent | SDS800X HD, SDS1000X-E, SDS2000X Plus, SDS1000X HD, SDS2000X HD |
| Tektronix | 2, 4, 5, and 6 Series MSO (including B and low-profile models), 3 Series MDO, MDO3000, MDO4000/B/C, TBS1000/B/B-EDU/C, TBS2000/B |
| Keysight / Agilent | InfiniiVision 1000 X (including DSOX1200 models), 2000 X, 3000 X A, 3000T X, 4000 X A, HD3 |
| Rohde & Schwarz | MXO 4, MXO 5 (including MXO 5C), RTB2000, RTM3000, RTO1000, RTO2000, RTO6, RTP |
| Teledyne LeCroy | WaveSurfer 3000z and 4000HD, WaveRunner 8000, 8000HD, and 9000 (including M models) |
| GW Instek | MDO-2204EX |

Every listed family supports:

* analog voltage channels, with channel and timebase setup
* edge triggers
* single acquisitions and saved waveforms
* front-panel screenshots

Digital pods, segmented or sequence acquisition, built-in generators, and protocol decoding aren't supported. Embedder refuses an acquisition it can't read as a voltage trace instead of saving bad data.

Support for each family is tested against simulated scopes, not on every physical model and firmware version. The first time you use a particular model and firmware, check a capture against a known signal.

## Connect

Put the scope on a network the Embedder host can reach. Check signal limits, grounding, and probe attenuation before you connect the inputs.

1. In the Monitor, select **+** to open a new tab.
2. Select the scope under **On the bench**. Embedder finds LXI scopes on the local network automatically.
3. If the scope isn't listed, type its address in the search field, such as `192.168.1.20` or `192.168.1.20:5025`, and select **Connect to** for that address. Without a port, Embedder tries port `5025`, then `4000`.
4. In the scope's tab, select **Set up & connect** if it appears. Selecting it approves setup: Embedder installs the Python packages that model needs, shows progress in the toolbar, and then connects. Setup takes about 20 seconds. Once setup has run, the tab connects to a **Ready** scope on its own, or shows **Connect**.

You can also add a scope from the **Oscilloscope** tab: open the device chip at the start of the toolbar, choose **Enter address…**, type the address, and select **Add**.

Some scopes need a setting on the instrument first:

| Scope | What to set |
| - | - |
| Tektronix | Turn on **Utility › I/O › Socket Server** with protocol **None**, or let discovery find the scope. Embedder refuses a socket server in Terminal mode. |
| GW Instek MDO-2204EX | The socket server is off by default. Turn on **Utility › I/O › Socket Server**, choose a port, and connect with that port, such as `192.168.1.20:5025`. |

See [Connect a bench instrument](https://docs.embedder.com/debug-mode/overview.md#connect-a-bench-instrument) for device states. On the **Oscilloscope** tab, **Disconnect**, **Rename device**, **Enter address…**, and **Rescan devices** are in the **⋯** (**Device actions**) menu, with **Forget device** for a saved scope that isn't currently detected.

## Capture in the Monitor

Use the **Oscilloscope** tab to set up the scope and capture without writing a script.

1. Select the **Scope setup** chip, the settings summary beside the device chip, to open the setup panel. It shows the scope's current front-panel settings.
2. Under **Channels**, select a channel name such as **C1** to turn it on or off, and set its V/div and probe factor. Select **More C1 settings**, the arrow at the end of the channel's row, to set its **Offset**, **Coupling**, and **Input** impedance. Only the options the model supports appear.
3. Under **Horizontal**, set **Time/div** and **Delay**, and **Points** on models with settable memory depth.
4. Under **Trigger**, set the **Source**, **Slope**, **Level**, and **Mode** (**Auto**, **Normal**, or **Single**).
5. Select a capture control.

Changes apply to the scope as you make them. If the scope can't take a value, a note appears above the chart. **Restore saved setup** reapplies the setup Embedder remembered for this scope.

| Control | What it does |
| - | - |
| **Auto** | Runs the scope's autoset to find the signal. |
| **Single** | Arms once and captures the next trigger. It waits up to 10 seconds. |
| **Run** | Captures repeatedly until you select **Stop**. The status shows the capture rate. |
| **Stop** | Stops capturing and keeps the saved captures. |

Setup is locked while capturing, and only enabled channels are captured. The **Measurements** readout on the chart shows Vpp, RMS, and frequency for each channel. Select **All measurements** to add Vmax, Vmin, mean, period, and rise time. Drag across the chart to zoom. Every capture is saved to capture history, and you can reopen it without the scope connected.

## Ask Embedder for a capture

Name the channels, coupling, scale, timebase, trigger, and timeout:

```text theme={"theme":"css-variables"}
Capture C1 at 500 mV/div with DC coupling and 1 ms/div. Trigger on C1 rising
through 100 mV, wait up to 10 seconds, and report Vpp and frequency.
```

Every family supports edge triggers. Embedder rejects other trigger types before it changes the scope. Only the SDS800X HD adds [advanced Siglent triggers](https://docs.embedder.com/debug-mode/siglent.md#choose-a-trigger).

Saved captures keep up to one million samples per channel. Larger acquisitions are thinned evenly for display and storage, and the capture keeps the full sample count and rate. For a front-panel image, ask for a screenshot.

## Connect from a hardware script

In a [hardware script](https://docs.embedder.com/debug-mode/hardware-scripts.md), `scope_connect()` with no arguments connects to the scope selected in the **Oscilloscope** tab. Without a Monitor selection, pass a VISA resource or a host and port:

```python theme={"theme":"css-variables"}
scope_connect(resource="TCPIP::192.168.1.20::inst0::INSTR")
# Alternatives:
# scope_connect()                                  # scope selected in the Monitor
# scope_connect(host="192.168.1.20", port=5025)    # raw SCPI socket
# scope_connect(resource="VICP::192.168.1.20::INSTR")  # Teledyne LeCroy VICP
scope_set_channel(1, scale=0.5, coupling="DC")
scope_set_timebase(scale=0.001)
scope_set_trigger(source="C1", level=0.1, edge="rising")
data = scope_capture_waveform(channels=[1], timeout_s=10)
scope_publish_capture(name="C1 capture")
scope_disconnect()
```

A `host` without a port connects over VXI-11. An explicit port connects to a raw SCPI socket. `scope_capture_waveform()` waits 5 seconds for the trigger unless you pass `timeout_s`.

If network discovery is blocked, for example on corporate Wi-Fi, set these variables in the environment that launches Embedder or VS Code:

| Variable | Use |
| - | - |
| `EMBEDDER_SCOPE_HOST` | The scope's address. Embedder skips discovery and probes this address directly. |
| `EMBEDDER_SCOPE_PORT` | The raw SCPI socket port for that address. Set it when the scope's VXI-11 server is off. Without it, scripts connect over VXI-11. |

USB VISA resources are accepted. They need platform drivers or device permissions and haven't been verified on physical hardware. To use an installed vendor VISA runtime, pass `visa_backend="@ivi"` to `scope_connect()`.

These helpers read and change settings on every supported family:

| Helper | Purpose |
| - | - |
| `scope_read_settings()` | Returns the scope's current channel, timebase, and trigger settings. |
| `scope_apply_settings(settings)` | Applies a subset of those settings and returns notes for values the scope didn't accept. |
| `scope_autoset()` | Runs the scope's autoset. |
| `scope_screenshot(path)` | Saves a front-panel screenshot. |
| `scope_query(command)` / `scope_write(command)` | Sends a SCPI command for functions outside the standard controls. Read the result back to confirm it. |

## Troubleshoot

* **Scope not listed:** check the IP address and that the scope is on the same subnet as the Embedder host. Choose **Rescan devices** from the **⋯** (**Device actions**) menu, or type the address in a new tab's search field. If discovery is blocked on your network, set `EMBEDDER_SCOPE_HOST`.
* **No instrument answered:** Embedder tried ports `5025` and `4000`. Turn on the Tektronix or GW Instek socket server, or enter the address with the scope's socket port.
* **Unsupported:** confirm the exact model against the table above.
* **In use by …:** the named Embedder task holds the hardware. Wait for it to finish, then connect again.
* **Trigger rejected:** use an edge trigger. Only the SDS800X HD supports other trigger types.
* **No trigger within 10 s:** check that the source channel is enabled, then check the level, polarity, and expected event. Set the trigger **Mode** to **Auto** to capture without an event.
* **Clipped signal:** increase **V/div** or adjust the offset.
* **Read error:** Embedder closes the connection after an interrupted or malformed transfer. Reconnect before retrying.

See [Oscilloscope](https://docs.embedder.com/debug-mode/oscilloscope.md) to compare other scopes, or use a [spectrum analyzer](https://docs.embedder.com/debug-mode/spectrum-analyzer.md) for frequency-domain measurements.


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