Applications / Production

Programming and calibration fixtures.

Power the board with a current limit, flash it with the vendor's tool, trim it against a reference meter, verify, and log the unit. Each stage shows on the operator's screen as it runs.

In short
Power-upProgrammable supply with a current limit
FlashingThe vendor's tool or library, wrapped in a Python connector
TrimmingMeasure with a bench DMM, write the offset back
Operator viewSteps, progress, banner, log
Plan
01 · The setup

A clamp, a probe and a supply: every step in one script.

Line drawing of a programming fixture with numbered callouts: 1 programmable supply, 2 pogo-pin fixture with toggle clamp, 3 debug probe, 4 laptop.1234
  1. 1Programmable supply powers the board with a current limit, so a short shows up as current, not smoke.Scpi
  2. 2Pogo-pin fixture with a toggle clamp holds the board on its test points.—
  3. 3Debug probe flashes the firmware through the vendor tool, wrapped in a Python connector.Python
  4. 4Laptop with the script editor for the engineer; the operator sees the Steps dashboard.dashboard
02 · The stages

One script, one row of steps on the operator's screen.

EX  Power up, flash, trimPro
runs inside Muxitruns on your computer · pip install muxit
scripts/operator/program.js
// program.js: power up, flash, trim, verify
const psu = connector("psu");
const flasher = connector("flasher");     // Python connector
const dmm = connector("dmm");
const line = connector("fixture-line");   // state for the dashboard

line.reset();
line.status = "RUNNING";

line.setStep(0, "running");
psu.current_limit = 0.2;
psu.voltage = 5;
psu.output = true;
delay(500);
line.setStep(0, psu.measured_current < 0.15 ? "pass" : "fail");

line.setStep(1, "running");
const ok = flasher.flash("firmware/fx330-2.4.1.hex");
line.setStep(1, ok ? "pass" : "fail");

line.setStep(2, "running");
const vref = dmm.voltage;
flasher.trim(2.500 - vref);               // write the offset to the unit
line.setStep(2, "pass");

psu.output = false;
line.status = ok ? "PASS" : "FAIL";
program_unit.py
# program_unit.py: power up, flash, trim, verify
import time
import muxit

m = muxit.connect()
psu = m.connector("psu")
flasher = m.connector("flasher")     # Python connector
dmm = m.connector("dmm")
line = m.connector("fixture-line")   # state for the dashboard

line.reset()
line.status = "RUNNING"

line.setStep(0, "running")
psu.current_limit = 0.2
psu.voltage = 5
psu.output = True
time.sleep(0.5)
line.setStep(0, "pass" if psu.measured_current < 0.15 else "fail")

line.setStep(1, "running")
ok = flasher.flash("firmware/fx330-2.4.1.hex")
line.setStep(1, "pass" if ok else "fail")

line.setStep(2, "running")
vref = dmm.voltage
flasher.trim(2.500 - vref)           # write the offset to the unit
line.setStep(2, "pass")

psu.output = False
line.status = "PASS" if ok else "FAIL"

What happens

  1. The supply comes up with a 200 mA limit. A board that draws too much fails the first step before anything is flashed.
  2. flasher is a Python connector. Its flash() and trim() functions call the vendor's tool.
  3. The DMM reads the reference voltage and the script writes the correction back.
  4. setStep updates the Steps widget on the operator dashboard as each stage passes or fails.

The Steps and banner widgets bind to a Virtual connector that holds the state, like the Production Line example that ships with Muxit.

03 · On screen

The engineer edits; the operator runs.

The Muxit script editor with a production test script open, the workspace explorer on the left.
The Production Line dashboard mid-run with stages Connect, Identify and Erase checked and Program running.
04 · Python

Wrapping the vendor tool.

A Python connector points at a .py file in workspace/python/. Each top-level function becomes an action. A requirements.txt next to it is installed into a private environment the first time the connector starts.

The function can call the vendor's command-line programmer with subprocess or use their Python library directly, and return true or false.

python/flasher.py
import subprocess

def flash(path):
    r = subprocess.run(["vendor-flash", "--port", "COM7", path],
                       capture_output=True)
    return r.returncode == 0

def trim(offset_v):
    subprocess.run(["vendor-flash", "--write-cal", f"{offset_v:.4f}"],
                   check=True)
05 · What you need

Instruments and plan.

PartHow Muxit reaches it
Programmable DC supplyScpi · LAN / USB-TMC / serial
Programmer (vendor command-line tool or Python library)Python connector (Python 3.10+ on the host)
6½-digit bench DMM or reference meterScpi
Serial console of the boardLineText
Barcode scanner, label printer (optional)LineText, LabelPrinter

A fixture with more than three instruments, and operator mode for the person running it, need Pro. Pricing →

Every instrument here needs a remote interface (LAN, USB-TMC or serial). Handheld meters and supplies with only knobs can't take part in an automated test.

06 · Limits

What it doesn't do (yet).

  • Muxit doesn't ship programmers for specific microcontrollers. It runs the vendor's tool or library through a Python connector you write.
  • Python connectors need Python 3.10 or newer on the station computer.
  • Stop ends a script at once, so a stopped run can leave a half-flashed board. Put the supply in a safe state before the loop and in the connector.