RIDING BYTES
← All insights

November 7, 2026 · 5 min read

Instrument exports: sending the run list to the instrument

An export interface turns a SENAITE worksheet into a run list the instrument software can load, so nobody types sample IDs at the bench. What core ships, how the round trip with the import works, and when you need your own exporter.

Instrument exports: sending the run list to the instrument

Instrument imports bring results from the instrument into SENAITE. The other direction matters as much. Before a run, someone tells the instrument software which sample sits in which position. Typed by hand, that sequence is where sample IDs get swapped, and a swapped ID at this point produces a correct measurement on the wrong sample, which no verifier will spot.

An export interface takes this step off the keyboard: SENAITE writes the run list from the worksheet, in the format the instrument software reads.

What core ships

Export interfaces are rarer than import interfaces, because fewer instruments accept a run list from outside. SENAITE core ships exporters for three:

  • Varian Vista-PRO ICP
  • Lachat QuickChem
  • FOSS FIAStar

The senaite.instruments add-on adds further interfaces, including exporters for Agilent ChemStation, Agilent MassHunter and Thermo Xcalibur. For everything else, an export interface is written in the project add-on (see below).

Before planning an integration, check two things in the instrument’s documentation: whether its software can load a sequence or run list at all, and which file it expects. That decides whether an export is possible, not SENAITE.

Setting it up

On the instrument (Setup, Instruments), select the exporter under Data Interface. Each instrument has one export interface, next to any number of import interfaces.

On the worksheet, assign that instrument. A worksheet is exported for one instrument at a time; without an assigned instrument, the export stops with “You must select an instrument”, and an instrument without an export interface gives “Instrument has no data interface selected”.

Then choose Export on the worksheet. The browser downloads the file, which the operator loads into the instrument software.

What the file contains

The Varian exporter is a good example of what these files look like. It writes one line per sample, ordered by worksheet position, with the sample ID in the first column and fixed values the instrument software expects in the others:

"W-0101*","                    ","                    ","                    ",1.000000000,1.000000,1.0000000
"W-0102*","                    ","                    ","                    ",1.000000000,1.000000,1.0000000

The asterisk separates the sample ID from the sample point title, which is empty here. Blanks, controls and duplicates on the worksheet get a line as well, identified by their reference analysis group ID instead of a sample ID.

What the other columns mean is the instrument’s business. The exporter writes what the instrument software requires; SENAITE does not interpret it.

How the round trip closes

The import does not match results by position. It matches by ID: first as sample ID, then as client sample ID, and for QC by the reference analysis group ID. That is why the round trip works: the instrument writes the IDs it received in the run list back into its result file, and the importer finds the same samples and the same QC analyses again.

Two things follow.

The order on the tray must match the run list. SENAITE cannot see the physical tray. If the operator loads position 5 and 6 the other way round, the instrument reports W-0105’s measurement under W-0106’s ID. A worksheet template helps here, because every worksheet then has the same structure as the tray.

IDs must survive the instrument software. Some instruments truncate IDs or strip characters. Test the round trip with your real ID format, for example one with a prefix and a year, before go-live. See the ID server for how sample IDs are built.

What the export does not do

The export is a download. SENAITE does not keep a copy of the file on the worksheet, unlike the import, which attaches the result file. If the lab needs the run list as a record, the instrument software’s own run archive is the place to keep it.

The export does not change the state of anything. Analyses stay Assigned until results come back.

It also does not push anything over the network. For instruments that receive orders through a live connection rather than a file, the route is a protocol connection such as ASTM, see senaite.astm.

Writing your own exporter

An export interface is a small adapter in the project add-on. It implements IInstrumentExportInterface, provides an Export method, and gets the worksheet’s analyses when called. From these it builds the file: sample ID, position, and whatever the instrument needs, then sends it to the browser as a download. After registration it appears under Data Interface next to the built-in ones.

The code is the smaller part of the work. The effort goes into the instrument’s file specification: which columns, which separator, which encoding, how QC samples are marked, whether a header is required. Get a sample run list from the instrument software and one complete run with result file before writing anything, and test the finished exporter on the instrument itself, not only by looking at the file.

Without a network at the bench

Instrument PCs are often not on the lab network. The export and import pattern works anyway: download the run list, carry it to the instrument on a USB stick, run the batch, carry the result file back and import it. What matters is that the IDs travel in files, not through someone’s hands on a keyboard.

Two people reviewing notes on paper next to a laptop

Bring this to your lab

Whether you are evaluating SENAITE, scaling it across sites, or wiring up instruments and monitoring, the team that wrote the platform is the team you talk to.