Is there any other way to import and plot .xdf file that is recorded from the Lab Recorder onto MNE?
Hello,
I have been trying to import a .xdf file containing 180 seconds of EEG data on 2 channels from Lab Recorder for Mock LSL streaming and preprocessing on MNE.
I could load the file using these codes as per the tutorials on MNE:
This is probably a scaling issue. MNE expects that the EEG amplitude values are reported in Volts, but the EEG data unit in your XDF file might be microvolts, for example.
Can you see the EEG channel traces if you do raw.plot(scalings="auto") ?
You could also try MNELAB, which supports importing XDF:
from mnelab.io import read_raw
raw = read_raw(xdf_file_path, stream_ids=stream_ids)
Note that you need to provide the stream IDs you want to import (it needs to be a list, even if you want to import only a single stream). You can get a list of all stream IDs contained in the file with:
import pyxdf
pyxdf.resolve_streams(xdf_file_path)
Marker streams are automatically imported. If you select more than one non-marker stream, you have to perform resampling by passing fs_new=xxx.
I tried using MNELAB and got the same result, flatlines in two electrodes which have EEG recording. It seems like there is data but Iām unable to visual it as the usual EEG signal.