# 20. Troubleshoot: from a wrong reading on the bench to the faulty part

A board on the bench reads wrong: the output sits at 10 V where it should be 5 V. **Troubleshoot** compares what
you measure with what the circuit predicts for every fault it can think of (each part open, shorted, of the wrong
value, a switch stuck, a wrong variant), and tells you which point to measure next to tell the likely causes apart.
It never changes the circuit.

Choose **Analysis > Faults > Troubleshoot**.

## The symptom

Type what reads wrong and what it reads:

- **Symptom**: a node (`VOUT`) or any recorded signal (`i(L1)`);
- **reads**: a number (SI prefixes and a unit are fine: `4.8`, `4.8 V`, `12m`), a range typed `low..high`
  (`4.7..4.9`), `open`, or what a scope shows: `no switching`, `switching`, `oscillates` or `steady`.

A scope word makes every prediction a simulation of the circuit, read as a meter and a scope would read it over
the end of the run: a node's mean (what a DC meter shows on a switching node), its peak to peak, whether it
switches and whether it oscillates. So `SW` reading `no switching` on a buck ranks the switch stuck on or off and
a missing load first, and the next checks can be a scope look (`switching(v(SW))`, `pp(v(VOUT))`) as well as a
meter reading.

**Bench test** says how the board is set up: **Board as it is**, or one of the named tests (**Static gate test**,
**Double-pulse test**, **No-load start-up**, **Full load**). With a test, every prediction is a simulation of the
board as it is on that bench, and what the healthy board does wrong there (a DESAT trip with no drain connection,
an under-voltage lockout from a low bench supply, a missing fault pull-up) is ranked next to the part faults, in
orange.

Press **Start Troubleshooting**.

![The Troubleshoot window on the buck example, after its switch node SW read no switching, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/troubleshoot/01-session.png)

1. **Symptom**: the node that reads wrong, here `SW`.
2. **reads**: what it reads, here `no switching`, a scope word, so every prediction is a simulation.
3. **Start Troubleshooting** starts the session.
4. **Likely causes**: S1 stuck on, S1 stuck off and the missing load (R1 open) come first, at 33 % each.
5. **Next check**: measure the DC voltage of `SW`, which tells those three apart.

## The next check

On the left, **Likely causes** ranks the causes with their probability, and **Readings** lists what you have
measured so far, the symptom first.

On the right, **Next check** names the point to measure (`v(fb)`, a part's marking, or `r(fb,0)`: a resistance
with the power off, `0` being ground), how to measure it and why that check. A red warning means the check touches
a hazardous voltage. **If it reads** lists each reading the check can give and the causes it would point to.

Type the reading and press **Enter Reading** (or Enter), or click one of the expected readings. A resistance takes
ohms or `open` (the meter's OL); a marking takes `differs` or `matches`. Live checks come first: a resistance
check is asked for only when no live reading can split the causes left.

## The conclusion

When one cause is likely enough, or no further check can split the rest, the card shows the **Conclusion**: the
most likely cause, or the causes that read the same in every check, and their **Fixes**. Causes that read the same
everywhere, live and with the power off, are told apart only by inspection.

**End Session** ends the session. The session belongs to the circuit: closing the window keeps it, and the CLI
and the assistant see the same one.

## Plan a bench test

Pick a **Bench test** and press **Plan Test** before you power the board. The bench is simulated with the real
IC models, and the window lists what will go wrong (for example "DESAT protection trips", with "short DESAT to
COM for the static test" as the fix) and the preparation the test needs.

## The same from the CLI and agents

The window runs the engine commands `debug.start`, `debug.answer`, `debug.end` and `debug.planTest`; see the
`powercraft-lab` skill and the command reference.
