- News
- Raw EEG Data Access with g.tec: Real-Time Streams, APIs and File Formats in One Place
Raw EEG Data Access with g.tec: Real-Time Streams, APIs and File Formats in One Place
Your Data, Your Code: How to Reach Every Raw Sample from Every g.tec System
Raw EEG data access decides how fast you can build, validate and publish your own pipeline. Closed-loop BCI experiments, custom classifiers and reproducible research pipelines all have one thing in common. They depend on direct access to the raw biosignal.
Whether you are building a first prototype in Python or running a multi-group core facility, the question is always the same: Can I get to my raw data, in my own tools, without being locked into vendor software? The short answer: yes.
Every g.tec system gives you access to the raw biosignal, live during the recording and afterwards as a file. g.HIamp, g.USBamp, g.Nautilus and Unicorn BCI Core-8 stream through the g.NEEDaccess API (Python, MATLAB, C, .NET). Unicorn Hybrid Black streams through its C and .NET APIs, Lab Streaming Layer (LSL) and UDP. All amplifiers digitise at 24 bit. Recordings are stored as HDF5, CSV or MAT and can be converted to EDF and GDF for MNE-Python, EEGLAB, FieldTrip or Brainstorm.
This article brings all access paths together on one page: how data reaches your code in real time, what you get in the file, and which licences are involved.
Why Raw EEG Data Access Matters
If you only get filtered or downsampled data, you cannot validate your own preprocessing. You cannot measure latency end to end. And you cannot share your data in open formats.
- BCI researchers need the unprocessed signal to train and benchmark their own decoders.
- Postdocs and developers want to work in Python, MNE and their own pipelines from day one.
- Core facilities need one system that serves many groups, each with its own toolchain.
- Principal investigators need data that stays usable and shareable long after the study ends.
Raw EEG Data Access Paths at a Glance
| System | Signal | Real-time access | Python | Recording format |
|---|---|---|---|---|
| g.HIamp | 16–256 channels, 24 bit, up to 38.4 kHz, ±340 mV | g.NEEDaccess API (C, .NET, MATLAB, Python, Network API); Simulink and LSL via g.HIsys | g.NEEDaccess Python API | HDF5 (g.Recorder) → EDF, GDF, GDF24 |
| g.USBamp | 16 channels, 24 bit | g.NEEDaccess API; Simulink and LSL via g.HIsys | g.NEEDaccess Python API, g.Pype | HDF5 (g.Recorder) → EDF, GDF, GDF24 |
| g.Nautilus | Wireless, 24 bit | g.NEEDaccess API; Simulink and LSL via g.HIsys | g.NEEDaccess Python API | HDF5 (g.Recorder) → EDF, GDF, GDF24 |
| Unicorn BCI Core-8 | 8 EEG channels, 24 bit | g.NEEDaccess Python API, LSL, UDP | g.Pype | CSV, EDF, HDF5 or MAT (g.Pype) |
| Unicorn Hybrid Black | 8 EEG channels, 24 bit, 250 Hz, DC-coupled | C API, .NET API, LSL and UDP (included); Simulink and Unity as add-ons | Unicorn Python API (add-on), BrainFlow | CSV (Unicorn Recorder) |
Lab Streaming Layer (LSL)
LSL is the common language of multimodal labs. It synchronises EEG with eye tracking, motion capture, stimulus software and other amplifiers on one clock. Unicorn devices ship with an LSL app. For g.HIamp, g.USBamp and g.Nautilus, the LSL interface and marker stream are part of g.HIsys Professional.

UDP
For low-overhead streaming into game engines, robots or custom apps, Unicorn devices send data via UDP out of the box.
Python and g.Pype
g.Pype is g.tec’s Python SDK for real-time pipelines. It runs on Windows, macOS and Linux and installs with one command:
pip install "gpype[all]"
A pipeline reads from the amplifier, filters, and writes to LSL, UDP, CSV, EDF, HDF5 or MAT. Your own classifier can sit anywhere in the chain.
MATLAB and Simulink
The g.NEEDaccess MATLAB API handles device discovery, impedance checks, sampling rate and acquisition. g.HIsys runs real-time experiments directly in Simulink, including multimodal setups: the g.SENSOR fNIRS records fNIRS and EEG synchronously on the same platform.
Triggers and Event Markers
g.HIamp records 16 digital inputs and g.USBamp 8 digital inputs synchronously with the biosignals. The g.tec USB-to-Parallel-Port Adapter sends 8-bit trigger codes (255 events) from PsychoPy, E-Prime, Presentation, MATLAB or your own Python script, with a typical delay of around one millisecond.
How Raw Is “Raw”?
All g.tec amplifiers digitise at 24 bit. g.HIamp samples up to 38.4 kHz on up to 256 channels. Unicorn Hybrid Black records DC-coupled at 250 Hz with oversampling for a better signal-to-noise ratio. Filters are a setting, not a fixed part of the signal chain. Slow signals such as galvanic skin response or respiration are recorded DC-coupled with the high-pass switched off. Display filters in g.tec applications change only what you see on screen, never the data stored on disk.
File Formats and Metadata

- g.Recorder (g.HIamp, g.USBamp, g.Nautilus) stores recordings as HDF5. The built-in converter exports EDF, GDF and GDF24.
- Unicorn Recorder stores CSV: 8 EEG channels plus accelerometer (X, Y, Z), gyroscope (X, Y, Z), battery level, sample counter and a validation indicator.
- g.Pype writes CSV, EDF, HDF5 or MAT.
- g.BSanalyze, g.tec’s MATLAB analysis toolbox, loads MAT and HDF5 and imports EDF/EDF+, GDF, BDF, BCI2000, Neuroscan CNT, Micromed, Biopac and Unicorn Recorder data. Results export to ASCII.
BIDS. Export your recording to EDF and convert it with MNE-BIDS in a few lines:
import mne
from mne_bids import BIDSPath, write_raw_bids
raw = mne.io.read_raw_edf("recording.edf")
bids_path = BIDSPath(subject="01", task="rest", root="bids_dataset")
write_raw_bids(raw, bids_path, overwrite=True)
Licences: What Is Included and What Is Extra
- Unicorn Hybrid Black: The Unicorn Suite ships with every headset. The C API, .NET API, LSL app and UDP app are included. The Python API, Simulink interface and Unity interface are add-ons.
- g.HIamp, g.USBamp, g.Nautilus: g.NEEDaccess with Python, MATLAB, C, .NET and Network APIs is part of the g.tec Suite. LSL comes with g.HIsys Professional.
- g.Pype: Free for non-commercial use; a licence removes the non-commercial mark.
Your recordings are stored in open formats (HDF5, CSV, MAT, EDF, GDF) that you can read without any g.tec software.
Try It Before You Buy
A Unicorn recording loads in Python with two lines of pandas:
import pandas as pd
data = pd.read_csv("UnicornRecorder.csv")
eeg = data.iloc[:, :8] # 8 EEG channels
motion = data.iloc[:, 8:14] # accelerometer + gyroscope
g.BSanalyze ships with test recordings for Unicorn, BCI paradigms, EDF, BDF and fNIRS. Contact us for a sample recording from the system you are evaluating.
From Prototype to Clinic on the Same Data Path
Many labs start with a fast prototype: a Unicorn, Python and LSL. Later they move to a publishable study with more channels, invasive recordings or clinical requirements. With g.tec, the data path stays the same. g.tec’s own medical products, such as cortiQ for functional mapping and recoveriX for stroke rehabilitation, run on the same g.NEEDaccess interface that researchers use. Looking for a step-by-step start? Read The Complete Developer Guide to Brain-Computer Interface Development.
Related publications: Start Your Own BCI Lab: A Practical Guide for Rapid Setup (Brain-Computer Interface Research, Springer; co-authored by Christoph Guger); Real-time estimation of EEG-based engagement in different tasks (Natalizio A, Sieghartsleitner S, Schreiner L, et al., Journal of Neural Engineering, 2024).
Raw EEG Data Access: Frequently Asked Questions
Can I access raw EEG data from g.tec amplifiers in Python?
Yes. Use the g.NEEDaccess Python API or g.Pype for g.HIamp, g.USBamp, g.Nautilus and Unicorn BCI Core-8. Use the Unicorn Python API or BrainFlow for Unicorn Hybrid Black.
Do g.tec systems support Lab Streaming Layer?
Yes. Unicorn devices include an LSL app. Research amplifiers stream to LSL via g.HIsys Professional or g.Pype.
Which file formats does g.tec use?
HDF5 (g.Recorder), CSV (Unicorn Recorder) and CSV, EDF, HDF5 or MAT (g.Pype). g.Recorder files export to EDF, GDF and GDF24.
What resolution and sampling rate do g.tec amplifiers use?
All amplifiers digitise at 24 bit. g.HIamp samples up to 38.4 kHz; Unicorn Hybrid Black samples at 250 Hz.
How do I send event markers from PsychoPy or E-Prime?
Use the digital trigger inputs or the USB-to-Parallel-Port Adapter, which sends 255 trigger codes with about one millisecond delay.
Can I convert g.tec data to BIDS?
Yes. Export to EDF and convert with MNE-BIDS.
Is raw EEG data access locked into g.tec software?
No. Raw EEG data access works with your own code: data streams live to Python, MATLAB or LSL and is stored in open, documented formats.
One Data Path from First Experiment to Final Paper
Together, g.NEEDaccess, g.Pype, the Unicorn Suite and open file formats give you direct, documented raw EEG data access to every sample, on every g.tec system. Stream it live into Python, MATLAB or LSL, store it as HDF5 or CSV, export it to EDF, GDF or BIDS, and analyse it in the tools your lab already uses. Your data stays yours, from the first prototype to the final publication.
You are currently viewing a placeholder content from Hubspot Embedded Content. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from HubSpot. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Hubspot Meetings. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information