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

# Logic analyzer

> Choose a logic analyzer, capture digital signals, decode buses, and keep results you can compare between runs.

Use a logic analyzer to check what actually crossed the pins: bus traffic, timing between edges, and handshakes between chips. Tell Inlay the channels, protocol settings, capture length, and the event you expect. The capture opens in the Monitor's **Logic** tab.

## Choose an instrument

> [card] [Saleae Logic](/docs/debug-mode/saleae.md)
>
> Timed or manual captures through Logic 2, Logic 2's own decoders, and `.sal` files.

> [card] [Digilent WaveForms](/docs/debug-mode/digilent.md)
>
> Digital capture with edge, level, or external triggers, plus analog inputs, waveform outputs, and supplies.

> [card] [DSLogic](/docs/debug-mode/dslogic.md)
>
> Buffer, streaming, and repeated captures, multi-stage triggers, and saved-capture analysis in the Monitor.

> [card] [PicoScope MSO](/docs/debug-mode/picoscope.md)
>
> Fixed-duration digital captures with pattern triggers on a model with a digital pod.

All four capture from the Monitor's **Logic** tab, when you ask Inlay, or from a [hardware script](/docs/debug-mode/hardware-scripts.md). They differ in what they capture, decode, and need installed:

| | Saleae Logic | Digilent WaveForms | DSLogic | PicoScope MSO |
| - | - | - | - | - |
| Capture modes | Timed, manual | Timed, manual (up to 60 s) | Device buffer, streaming, rolling, repeated | Fixed duration |
| Triggers | Immediate, or one digital edge | Edge, level, external | Edge, multi-stage pattern, serial pattern | Digital pattern, or from an analog channel |
| Protocol decoding | Logic 2's protocol analyzers | 11 built-in decoders | Built-in decoder catalog and custom packages | Not available; export raw transitions |
| Saved formats | `.sal`, raw CSV, decoded CSV | `.dwf3.json`, raw CSV, decoded CSV | `.dslogic.json`, DSView `.dsl`, CSV, VCD, and more | Raw CSV |
| You install | Logic 2, with automation turned on | Nothing; Inlay can install the WaveForms runtime | Nothing; Inlay downloads what it needs | Pico drivers |
| Operating system | Any that runs Logic 2 | macOS, Linux (x64 or Arm64), or Windows x64, with the runtime Inlay installs | macOS, Linux, or Windows, on x64 or Arm64 | Any with Pico's drivers for the model. Some older driver families [don't run on Apple silicon Macs](/docs/debug-mode/picoscope.md#fit-the-capture-to-the-device). |

Channels, thresholds, and sample rates depend on the model and, for some analyzers, the USB connection. Ask Inlay to check the connected device before you plan a capture.

A DSLogic can also capture on another machine through a [bench](/docs/debug-mode/dslogic.md#use-an-analyzer-on-a-bridge-host).

## Set up the analyzer

Follow the setup for your instrument:

* [Saleae Logic setup](/docs/debug-mode/saleae.md#prepare-logic-2): Logic 2 automation, channel numbering, and model thresholds.
* [Digilent WaveForms setup](/docs/debug-mode/digilent.md#prepare): runtime, USB connection, and device selection.
* [DSLogic setup](/docs/debug-mode/dslogic.md#prepare): automatic setup, device selection, and benches.
* [PicoScope setup](/docs/debug-mode/picoscope.md#prepare): drivers and the digital pod.

If more than one logic analyzer is connected, say which one to use. In a [hardware script](/docs/debug-mode/hardware-scripts.md#supply-a-capture-profile), set `logic_provider` in the capture profile to `saleae`, `dslogic`, `digilent`, or `picoscope`.

## Capture a bus

1. Connect the analyzer's ground to the target's ground, then connect the signal inputs.
2. Check that the signal voltage is within the analyzer's input limits.
3. Tell Inlay the channel assignments, logic voltage, expected bus rate, and capture length.
4. Add a trigger when the capture must start at a particular event. Use one your instrument supports.
5. Run the capture, then check the sample rate and duration Inlay reports.

```text theme={"theme":"css-variables"}
Capture SPI on channels 0 to 3 for 100 ms at 25 MS/s: clock on 0, MOSI on 1,
MISO on 2, chip select on 3. Start when chip select falls.
```

Sample at least four times the fastest bus clock so edges land where you expect them. Use the reported rate, not the requested one, when you calculate timing.

To capture without asking Inlay, select **+** in the Monitor and open **Logic Analyzer** under **Views**. Choose the analyzer from the device chip at the start of the toolbar. Next to it, the **Logic setup** chip shows a summary of the current settings; select it to set up the capture. Then select **Single** or **Run**.

From the Monitor, Saleae, Digilent, and PicoScope captures start immediately or on one edge. For their other triggers, ask Inlay or use a script. A DSLogic offers all of its trigger types in the Monitor. For the full steps, see the guide for [Saleae](/docs/debug-mode/saleae.md#capture-from-the-monitor), [Digilent](/docs/debug-mode/digilent.md#capture-from-the-monitor), [PicoScope](/docs/debug-mode/picoscope.md#capture-from-the-monitor), or [DSLogic](/docs/debug-mode/dslogic.md#capture-from-the-monitor).

## Decode and inspect

Give Inlay the channel roles and protocol settings for each bus:

| Protocol | Provide |
| - | - |
| UART | Data channel, baud rate, data bits, parity, and stop bits |
| SPI | Clock, MOSI, MISO, and chip select; clock polarity, phase, and bit order where the decoder accepts them |
| I2C | SDA and SCL |

Each analyzer has its own decoder list and options. See [Saleae](/docs/debug-mode/saleae.md#decode-a-bus), [Digilent](/docs/debug-mode/digilent.md#decode-and-save), or [DSLogic](/docs/debug-mode/dslogic.md#decode-a-bus). PicoScope digital captures aren't decoded; export the raw transitions instead.

Keep the raw signals next to the decoded rows. If decoded bytes look wrong, the raw edges show whether the problem is in the wiring, the decoder settings, or the firmware.

Saleae, Digilent, and DSLogic decode CAN frames. To turn frames into named application signals with your project's database, use [CAN Monitor](/docs/debug-mode/can.md).

### Navigate the waveform

Use the controls above the waveform, or click the waveform and use the keyboard:

| Action | Control | Key |
| - | - | - |
| Show the whole capture | **Fit capture** | `Home`, or double-click |
| Return to the previous zoom | **Previous view**, in the **View actions** menu | `Backspace` |
| Pan | **Pan left**, **Pan right**, in the **View actions** menu | `Left Arrow`, `Right Arrow`, or drag |
| Zoom | **Zoom in**, **Zoom out** | `+` or `=`, `-` |

To jump to exact positions, choose **Go to sample range…** from the **View actions** menu, or drag the **Overview** bar.

## Save and compare

1. Save the capture in the instrument's own format, where it has one, plus raw and decoded CSV exports.
2. Record the firmware revision, channel map, trigger, and reported sample rate with the result.
3. Repeat the same capture after a change and compare the two.

Inlay keeps captures in your project under `.inlay/captures/`. In the **Logic** tab, select **Capture history** to reopen earlier captures, grouped by chat session. You don't need the analyzer connected to reopen one.

A logic analyzer shows when a signal crosses a threshold, not its voltage. Use an [oscilloscope](/docs/debug-mode/oscilloscope.md) to check rise time, ringing, or voltage levels.

## Troubleshoot

* **Decoded bytes are wrong:** check the channel numbering first. Inlay counts channels from 0, even when the analyzer's housing labels start at 1. Then check baud rate, framing, SPI mode, and bit order before you change firmware.
* **Edges are missing or timing is uneven:** raise the sample rate or reduce the number of enabled channels.
* **Inlay reports several analyzers:** name the one to use, or set `logic_provider` in the capture profile.

For connection, threshold, or capture-mode errors, see the troubleshooting for [Saleae](/docs/debug-mode/saleae.md#troubleshoot), [Digilent](/docs/debug-mode/digilent.md#troubleshoot), [DSLogic](/docs/debug-mode/dslogic.md#troubleshoot), or [PicoScope](/docs/debug-mode/picoscope.md#troubleshoot).


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