Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: XDFReader unable to read XDF file generated by LabRecorder
Reply to topic
Author Message
Peter Noc



Joined: Mar 1, 2022
Posts: 4

PostPosted: Mar 2, 2022 11:45 AM    Post subject: XDFReader unable to read XDF file generated by LabRecorder

Hi,

I am unable to read the data from an XDF file generated by LabRecorder.
I can read and process the same file just fine using Python MNE Tools including MNE Lab.
Bioera throws the following error message when reading the file using XDFReader:

EDF File not recognized. JavaLangNumberFormatException: For input string "te>2".

I am sure I am using XDFReader and not EDFReader (have a screenshot but the forum does not allow attachments)

Regards
Peter
jarek



Joined: Oct 22, 2007
Posts: 952

PostPosted: Mar 2, 2022 12:00 PM    Post subject:

I don't know about LabRecorder, but it is possible that we are talking here about completely different formats which happen to have the same name.

BioEra's XDF format is open and explained in the manual (search for "XDF file format"):

http://bioera.net/manual.html
Peter Noc



Joined: Mar 1, 2022
Posts: 4

PostPosted: Mar 2, 2022 12:11 PM    Post subject:

So BioEra XDF format is not based on the:
https://github.com/sccn/xdf
?

"The XDF concept and beta version was developed by Christian Kothe and Clemens Brunner at the Swartz Center for Computational Neuroscience (SCCN) at the University of California San Diego, CA, USA.
"

This format is used by Matlab and Python based tools.
Peter Noc



Joined: Mar 1, 2022
Posts: 4

PostPosted: Mar 2, 2022 12:18 PM    Post subject:

Just looked at both EDF and XDF files:

The EDF beginniong:

0 Unidentified patient 25.05.0800.11.31512 43 1 1 FP1 Electrode

The XDF beginning (it is an XML file)

XDF:w<?xml version="1.0"?>
<info>
<version>1.0</version>
<datetime>2022-02-27T19:04:06+0000</datetime>
</info>f<?xml version="1.0"?>
<info>
<name>OpenBCC</name>
<type>EEG</type>
<channel_count>8</channel_count>
<nominal_srate>250</nominal_srate>
<channel_format>float32</channel_format>
<source_id>openbcigui</source_id>
<version>1.1000000000000001</version>
<created_at>6485.7047847160002</created_at>
<uid>37724f2b-983e-4527-92ab-ead5517b2ae9</uid>
<session_id>default</session_id>
<hostname>Sayonara.local</hostname>
<v4address />
<v4data_port>16572</v4data_port>
<v4service_port>16572</v4service_port>
<v6address />
<v6data_port>0</v6data_port>
<v6service_port>0</v6service_port>
<desc />
</info>


So the format name is just a bit misleading
Peter Noc



Joined: Mar 1, 2022
Posts: 4

PostPosted: Mar 2, 2022 12:33 PM    Post subject:

It seems that EEGLab can read XDF and export the data in EDF format.
I was able to read into BioEra the EDF file converted from XDF to EDF by EEGLab.
Reply to topic