scope_* script helpers. For Siglent model details and SDS800X HD advanced triggers, see Siglent oscilloscopes.
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.
Every listed family supports:
- analog voltage channels, with channel and timebase setup
- edge triggers
- single acquisitions and saved waveforms
- front-panel screenshots
Connect
Put the scope on a network the Embedder host can reach. Check signal limits, grounding, and probe attenuation before you connect the inputs.- In the Monitor, select + to open a new tab.
- Select the scope under On the bench. Embedder finds LXI scopes on the local network automatically.
- If the scope isn’t listed, type its address in the search field, such as
192.168.1.20or192.168.1.20:5025, and select Connect to for that address. Without a port, Embedder tries port5025, then4000. - 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.
See 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.- 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.
- 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.
- Under Horizontal, set Time/div and Delay, and Points on models with settable memory depth.
- Under Trigger, set the Source, Slope, Level, and Mode (Auto, Normal, or Single).
- Select a capture control.
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:Connect from a hardware script
In a hardware script,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:
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:
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:
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
5025and4000. 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.