mellinger wrote: 11 Apr 2024, 10:52
But based on the following, the processor is fast enough, is it not?
It's a 2-core mobile processor with low TDP, so it may not provide a lot of processing power all the time, especially when cooled passively (without a fan). But a decade ago, we were running BCI2000 on similar processors, and it ran fine.
From your screen shot, I can see that your configured block duration is 1.67ms. (Block duration is SampleBlockSize divided by SamplingRate.) This is quite ambitious, I would suggest 10 or 20ms at least. If you don't want to use BCI2000 for other than just recording EEG, there is no reason to stick to small block durations, so 50ms or 100ms is also OK. Just increase SampleBlockSize until the computer can keep up with the data.
Using SampleBlockSize of 50 instead of 8 and creating 10ms block duration seems more stable. But I noticed any multitasking can produce the missing bytes or buffer overflow.
I tried to save it as EDF so I can load it at EDFBrowser. I set the following to EDF instead of DAT.
However, when I ran EDFbrowser loading the file in data saved as EDF. I got the following error:
I googled and researched about it. I found the following site and others:
https://www.bci2000.org/mediawiki/index ... le_Formats
"EDF File Format
--FileFormat=EDF
EDF (European Data Format) is a standard for biosignal data especially popular in the area of sleep research.
EDF is limited to 16 bit data.
BCI2000 state variables will be mapped to additional signal channels.
BCI2000 parameters cannot be represented in EDF format. Setting the SaveAdditionalParameterFile parameter to 1 will save a separate BCI2000 parameter file along with the EDF data file.
Output in EDF format is implemented by the EDFFileWriter component."
I tried to add SaveAdditionalParameterFile 1 to the USBAMP.prm like this:
Storage:BCI2000FileWriter string FileFormat= EDF SaveAdditionalParameterFile = 1 // format of data file (readonly)
or this
Storage:BCI2000FileWriter string FileFormat= EDF // format of data file (readonly)
Storage:BCI2000FileWriter string SaveAdditionalParameterFile 1
but it won't run with the system log error messsage;
Script error: OnConnect, line 1: Could not load "C:/Users/AlbeP/Desktop/BCI2000.x64.bundled/usbamp.prm" as a parameter file.
I also put SaveAdditionalParameterFile 1 inside the BCI2000Launcher
It didn't work too as the word SaveadditionalParameter become part of the filename of the EDF
I even tried to put it in the batch file. But it didn't work either.
So how do you make the EDFBrowser load up the EDF file without error. I planned to extract the state vector from the BCI2000 EDF so the EDFWriter and even Matcad full version can load it properly with 100% data like in the raw.
I need to analyze them under FFT to extract signal in the 10uV range with frequency up to 1000Hz so I need the file to be unaltered and loadable in EDFwriter and Matcad. I'm first studying the frequencies before I would use BCI2000 signal processing to filter the raw data for any augmentation efforts.
Thank you. I read the documentations and your book for several hours.