Phasic← Overview

Export

Writes:     .bdf (BDF+C, 24-bit), .xdf (float32), and .vhdr (BrainVision IEEE_FLOAT_32 + .eeg + .vmrk)
Requires:   (no feature flag)
Applies to: all channel kinds

Exporting writes the recording as you have it configured — every edit applied — rather than a copy of the source file. The same transform is used by interactive export and by the batch runner, so a batch result and a manual save cannot drift apart.

Processing order

Edits are applied whole-signal, in a fixed order that matches what the plot shows:

  1. ASR — replaces the raw signal where it applies
  2. Bad-channel interpolation
  3. Montage — re-referencing
  4. Filters
  5. Resampling
  6. Normalization
  7. Channel selection

Everything runs on the whole signal before any crop is applied, so processing never crosses a crop boundary and the exported result matches the zero-phase view on screen.

Where a montage defines the output channel set, channel selection is skipped — the montage already determines which channels exist.

ASR is applied only when its output channel count and sample lengths match the source; any mismatch refuses the export with an explicit error rather than silently writing mixed raw and cleaned channels.

Choosing a format

BDF XDF BrainVision (.vhdr)
Numeric fidelity quantised to a 24-bit grid stored verbatim as 32-bit float stored verbatim as 32-bit float
Per-channel sample rates flattened to one rate preserved per stream single recording rate
Stream metadata lost preserved channel names, units & start time
Annotations written to the annotation channel written as a marker stream written to companion .vmrk
Read by other tools very widely LSL ecosystem tools very widely (MNE, EEGLAB, FieldTrip, BIDS)

For a recording that came from XDF or a live session, export to XDF. BDF quantises onto a digital grid sized to an estimated physical range, and discards the stream metadata that came with a live recording.

For a recording destined for tools that expect EDF-family files, export to BDF, accepting the quantisation.

Remember that EDF cannot be written — a recording opened from .edf must be saved as BDF or XDF.

Session export

A multi-stream session exports to a single XDF file in which each stream keeps its own rate and channel set, and samples are placed at absolute session time. Relative offsets between streams therefore survive the round trip: a stream that started two seconds after another still starts two seconds later when the file is reopened.

Things to know

Ragged channels are refused. When channels have different sample lengths, export fails with an explicit error rather than silently truncating to the shortest channel.

Empty exports are refused — nothing to write (no channels), or nothing to write (no streams) for a session.

BDF export loses per-channel native rates. As described under BDF and EDF, a heterogeneous recording is written at the master rate with slower channels interpolated.

Channel semantics are carried, not re-inferred. The kind and unit assigned to a channel travel with the export rather than being guessed again at write time, so a channel you retyped stays that type when the file is reopened.

Prediction export

The inference pane exports its results as CSV. This is a table of predictions, not signal data:

start_s,end_s,class,p_<label>,…

One row per epoch at the grain shown on screen, with times to three decimal places and per-class probabilities to six. This is the only CSV Phasic writes, and it cannot be read back in.

Plot figure export (PNG & SVG)

Use the plot pane’s overlay bar to export the current waveform view as a figure:

  • Export PNG — hides the floating overlay buttons for the capture frame, crops to the active plot area (including channel labels, scale bar, and time axis), and writes a compressed PNG off-thread via Save As.
  • Export SVG — renders the visible channels, processed traces, time axis, physical scale bar, and in-window annotations as a clean, light-background vector <svg> suitable for publications, slides, and vector editors (Inkscape / Illustrator).