Skip to content

Record data

LabOrchestra has two ways of saving what happens:

  • A snapshot saves the state of every device at one moment: all pressures, positions, frequencies and settings.
  • A recording runs from start to stop. It saves the state of every device at the start and the end, every change in between with its time and who made it, and the data that devices stream, such as the channels of an oscilloscope.

The recording controls are in the middle of the header (or in the Recording widget, if your view has one).

The recording controls in the header: a name field, a Snapshot button and a Record button with an arrow.The recording controls in the header: a name field, a Snapshot button and a Record button with an arrow.
  1. Type a name, or leave it empty.
  2. Click Record (or press Enter in the name field). The button turns into a stop button with the time recorded so far.
  3. Click it to stop. The bin next to it stops the recording and deletes it instead.

The arrow next to Record starts a recording of a fixed length: 30 seconds, 1, 2.5, 5, 10, 20 or 30 minutes. It ends by itself, also when nobody watches the screen.

Names are numbered: the next recording in a folder gets the next number (41 alignment, then 42 alignment). A recording that you delete gives its number back.

You chose the recordings folder at the first start. To change it, click Change folder… under Recordings on the Devices page.

The dialog Recording folder with a folder pattern containing {year} and {date}, buttons for the placeholders, a preview of the resulting folder, and the option to number recordings.The dialog Recording folder with a folder pattern containing {year} and {date}, buttons for the placeholders, a preview of the resulting folder, and the option to number recordings.

The folder can contain placeholders, so that every day gets a folder of its own:

Placeholder Becomes
{year}, {month}, {day}, {date} the date. A lab day ends at 4 in the morning, so a night shift stays in one folder.
{time} the time when the recording starts
{device.field} a value from the state of a device, for example {sample_stage.sample}

A change applies from the next recording on.

A recording named 42 alignment is a file and a folder:

42 alignment.yaml when, who started it, tags, and the state of every device at the start and the end
42 alignment/
events.json every change of every device: time, device, what changed, and who changed it
acq_C1.npy, acq_C2.npy streamed data, one file per oscilloscope channel (NumPy format)

A value that changes all the time, such as a position read ten times a second, is written at most once per second per field (the first change at once, then the latest value), so the file stays small. Whole numbers, switches and text are always written at once. The setting recording_float_interval_s changes the interval; 0 writes every change.

Months later, you can still see at what pressure, laser power and detuning a measurement was taken, without having written any of it down.

import laborchestra
rec = laborchestra.load_recording("D:/Recordings/2026-12-04/42 alignment")
t, p = rec.series("vacuum_gauge.channels.1.pressure") # a value over time
rec.state_at(12.5)["vacuum_gauge"] # the state of a device 12.5 s after the start
samples = rec.channel("acq", 1) # acq_C1.npy, memory-mapped

load_recording needs pip install "laborchestra[analysis]", which adds NumPy and PyYAML.

Next: use LabOrchestra from Python.