Back to the main page.

Bug 940 - confusing *intended* error appears in GdfWriter.h

Reported 2011-09-07 12:29:00 +0200
Modified 2011-09-14 14:33:49 +0200
Product: FieldTrip
Component: realtime
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Robert Oostenveld
Depends on:
See also:

Andrei Belitski - 2011-09-07 12:29:35 +0200

Hi, I'm working at donders institute trying to connect a new eeg device to the ft buffer. trying to include OnlineDataManager.h in my C/C++ code, I get an error message from GdfWriter.h on line 103 but the comment in that file above the line producing the error is saying "// compiling this function will always yield an error, which is what we want!" so, it is somehow an intended error so I'm a bit confused, if I shall not compile this function, is the OnlineDataManager outdated? Should I use else? thank you for your help

Robert Oostenveld - 2011-09-07 12:50:30 +0200

what is the hardware that you are trying to write a new interface for?

Andrei Belitski - 2011-09-07 13:05:52 +0200

(In reply to comment #1) > what is the hardware that you are trying to write a new interface for? I wanted to connect Neurosky Mindwave to ft buffer and I have succeded to do so, but I would also like to have gdf output from the buffer, so I wanted to use ONlineDataManager in my code as I've seen its been used in many other device2ft implementations as biosemi2ft, thinkgear2ft ... but this intentional error in GdfWriter.h confuses me, what is the purpose of it?

Robert Oostenveld - 2011-09-07 16:41:13 +0200

If I now recompile the code in fieldtrip/realtime/buffer/cpp (which includes OnlineDataManager.h) I don't get an error. Also, If I compile the code in fieldtrip/realtime/acquisition/neurosky there is no error. That code is using the gdf writer. Please provide more information on your platform (OS, compiler). On another note: Joe Mak (who is working at NeuroSky) provided me with this information "ThinkCap is a 7 channel dry-sensor EEG device. It is basically using similar communication protocol with the rest of our other devices. They differ only in the number of channels available and sampling rate (e.g Thinkcap: 7ch/250Hz; Mindset: 1ch/512Hz). I noticed from the code from Stefan Klanke that the sampling rate was set to be 256Hz (line 11, #define FSAMPLE 256.0). I just wonder would I be able to make changes to the source code and recompile the thinkgear2ft.exe?" He suggests that (despite the different names that their products get, probably for marketing purposes), that the systems are actually quite alike. Is the Mindwave so different from the ThinkCap that you have to re-implement it, or would a few changes to the existing be sufficient?

Robert Oostenveld - 2011-09-13 13:52:32 +0200

the latest version of FT does not have the problem

Robert Oostenveld - 2011-09-14 14:33:49 +0200

I closed all the bugs that were in the status RESOLVED. This includes the ones that we just discussed in the weekly fieldtrip meeting, but also the bugs that we did not discuss.