Applications / Production

End-of-line test with the instruments on your bench.

An operator scans a serial number. The station powers the unit, measures it, shows PASS or FAIL across the room and prints the label. The engineer writes that sequence once, against the same instruments they use in the lab: in Python while developing it, in JavaScript when the station runs it on its own.

In short
Operator seesOne dashboard, nothing else
Sign-inPIN per person; locks after 5 wrong PINs
NetworkClosed by default; remote access is opt-in
InputBarcode scanner, serial or keyboard mode
InstrumentsSCPI over LAN, USB-TMC or serial
OutputPASS/FAIL banner, log, label with serial
Plan
01 · The station

What is on it, and how Muxit reaches each part.

Line drawing of an end-of-line test station with numbered callouts: 1 touchscreen, 2 fixture, 3 barcode scanner, 4 label printer, 5 programmable supply, 6 electronic load, 7 bench multimeter.1234567
  1. 1Touchscreen on the station PC, showing the operator dashboard in a local browser.operator mode
  2. 2Fixture with pogo pins, wired to the instruments. Muxit doesn't need to know about it.—
  3. 3Barcode scanner. In serial mode every scan is an event for the script; in keyboard mode it types into an Input widget.LineText · Input
  4. 4Label printer through its normal OS driver. Templates with barcodes, QR codes and a serial counter.LabelPrinter
  5. 5Programmable DC supply. Voltage, current limit, output, measured current.Scpi
  6. 6Programmable electronic load. Constant current, input on and off.Scpi
  7. 76½-digit bench DMM. The measurement that decides pass or fail.Scpi
02 · The operator

One screen, readable from across the room.

The Production Line dashboard mid-run: a yellow RUNNING banner, progress at 50 percent, the serial number filled in, and the first three stages checked with Program running.
The same dashboard after the run: a green PASS banner and all six stages checked.
WidgetDoes
status-bannerFills its area with one colour and one word; the text scales with the widget
stepsThe stages of the test, with running, pass and fail icons
progressA determinate bar, or a sweep when the length is unknown
inputType or scan into a property; selects all on focus, commits on Enter
selectPick the product variant; segmented buttons sized for gloved fingers
terminalThe process log, coloured by severity, with filter, scroll lock and save

When the script needs a decision it asks with ask.confirm, ask.choose or ask.text; on an operator station those appear as a dialog on the dashboard.

03 · The engineer

The test is a script you can read.

EX  Scan, power up, measure, labelscripts/operator/
runs inside Muxitruns on your computer · pip install muxit
scripts/operator/eol-test.js
// eol-test.js: one unit per scan. Runs until Stop.
const station = connector("station");  // state for the dashboard
const psu = connector("psu");          // programmable supply
const load = connector("load");        // electronic load
const dmm = connector("dmm");          // bench DMM
const labels = connector("labels");    // label printer

while (true) {
  station.status = "WAITING";
  const serial = waitFor("connector:scanner.scan");
  station.reset();
  station.serial = serial;
  station.status = "RUNNING";

  psu.current_limit = 0.5;
  psu.voltage = 12;
  psu.output = true;
  delay(300);

  station.setStep(0, "running");
  const idle = psu.measured_current;
  const idleOk = idle < 0.08;
  station.setStep(0, idleOk ? "pass" : "fail");

  station.setStep(1, "running");
  load.current = 1.0;
  load.input = true;
  delay(500);
  const vout = dmm.voltage;
  const loadOk = vout > 4.9 && vout < 5.1;
  load.input = false;
  station.setStep(1, loadOk ? "pass" : "fail");

  psu.output = false;
  const pass = idleOk && loadOk;
  station.status = pass ? "PASS" : "FAIL";
  log.info(`${serial} ${station.status} vout=${vout}`);
  if (pass) labels.print({ serial, vout: vout.toFixed(3) });
}
eol_test.py
# eol_test.py: one unit per scan. Runs until Ctrl+C.
import time
import muxit

m = muxit.connect()
station = m.connector("station")  # state for the dashboard
psu = m.connector("psu")          # programmable supply
load = m.connector("load")        # electronic load
dmm = m.connector("dmm")          # bench DMM
labels = m.connector("labels")    # label printer

while True:
    station.status = "WAITING"
    serial = m.events.wait("connector:scanner.scan")
    station.reset()
    station.serial = serial
    station.status = "RUNNING"

    psu.current_limit = 0.5
    psu.voltage = 12
    psu.output = True
    time.sleep(0.3)

    station.setStep(0, "running")
    idle = psu.measured_current
    idle_ok = idle < 0.08
    station.setStep(0, "pass" if idle_ok else "fail")

    station.setStep(1, "running")
    load.current = 1.0
    load.input = True
    time.sleep(0.5)
    vout = dmm.voltage
    load_ok = 4.9 < vout < 5.1
    load.input = False
    station.setStep(1, "pass" if load_ok else "fail")

    psu.output = False
    result = "PASS" if idle_ok and load_ok else "FAIL"
    station.status = result
    print(f"{serial} {result} vout={vout}")
    if result == "PASS":
        labels.print({"serial": serial, "vout": f"{vout:.3f}"})

What happens

  1. waitFor blocks until the scanner reads a label. Scans that arrive while a unit is still under test are kept for the next round.
  2. The supply comes up with a current limit; the idle current is the first check.
  3. The load draws 1 A and the bench DMM reads the output: the second check.
  4. The banner shows the result; a passing unit gets a label with its serial and measured voltage.

station is a Virtual connector like the example's fixture-line: it holds the status, steps and serial that the dashboard shows. Instrument property names come from each connector's SCPI schema. Stop ends a script at once, so put safe states before the loop and hard limits in the connector.

Label templates are designed under Tools › Label Printing, with fields and a live preview. Printing to a real printer is Pro; previews work on every plan.

The Python tab is the same test, for while you develop it at your desk; the dashboard shows every step either way. The station itself runs the JavaScript version: a script inside Muxit is what an operator can start from the station's screen, and it keeps running when your laptop closes.

The Label Printing page in Muxit: a shipping template with product, serial, lot, quantity and destination fields and a live preview with a barcode.
04 · Control

Who can reach the station, who can change the test, and what gets recorded.

RoleCanPlan
OperatorSign in with a PIN, use the operator dashboards, start scripts from scripts/operator/, answer prompts, press Stop
EngineerEverything in the full interface: scripts, connectors, dashboards
AdminAn engineer who also manages accounts and the sign-in policy

Enforced by the server

Under the Dashboards only policy the server refuses edits to scripts, connectors, dashboards and settings, driver installs and safety-level changes from anyone not signed in as engineer or admin. It's more than a hidden menu.

Recorded

Safety policies per connector set limits and confirm gates. The audit log records every blocked, simulated or confirmed operation and every safety-level change, one JSON line each, naming the script or the signed-in person.

On the network

SituationWhat happensPlan
Out of the boxMuxit listens on the station PC only. Nothing else on the network can reach it, and it doesn't announce itself on the LAN.FREE
Remote access onAn admin turns it on and sets a password. Other computers get a login page; until a password is set, every request from them is refused. HTTPS with a self-signed certificate is optional.
From outside the siteNot directly: through a VPN such as Tailscale. Muxit does not relay connections through a server of ours.
An engineer at their deskSigns in with their own account and gets the full interface for that connection only. The station stays locked for the operator.

Want a picture of every unit as well? See visual inspection and image records.

05 · What you need

Instruments and plan.

PartHow Muxit reaches it
Programmable DC supplyScpi · LAN / USB-TMC / serial
Programmable electronic loadScpi · LAN / serial
6½-digit bench DMMScpi · LAN / RS-232
Barcode scannerLineText (serial mode) or Input widget (keyboard mode)
Label printer (Brother, Zebra, Epson)LabelPrinter, through the OS printer driver
Touchscreen on the station PCOperator mode, in a local browser

A whole station uses more than the three connectors on Free, and operator mode, accounts and label printing are Pro. Lab adds the audit log and per-connector safety policies. One installation per station. 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).

  • No MES integration out of the box. A script can call a webhook or write a file per unit.
  • No certification such as 21 CFR Part 11.
  • The audit log is per installation; there is no central log across stations, and it doesn't yet record every allowed write.
  • GPIB-only instruments need a Prologix or AR488 adapter; GPIB support is so far tested against simulated adapters only.