TSMi acquisition module

Forum for software developers to discuss BCI2000 software development
Locked
louismayo
Posts: 20
Joined: 25 Jun 2007, 05:40

TSMi acquisition module

Post by louismayo » 29 Jun 2007, 04:30

Hello,

I am doing internship at Loria (http://www.loria.fr), in order to start implementation of the Refa from TSMi hardware on BCI2000 platform, which go through the development of a new acquisition module.

So, I am implementing the BCI module for TMSi hardware. I knew there where an existing module for this hardware by I had a couple of errors when using it. I contact M. M. Span who developed it and he told me the error seam "grave" that is why I decided to take it from the start as it didn't seem that hard with the TMSi SDK which is in C++.

* went on bci wiki to read the "make an acquisition module"
* downloaded the sources(src/shared)
* downloaded borland c++
* created the derivated classes from GenericADC
* created the 3 needed functions (TSMiStart,TSMiStop() and TSMiWaitfordata).

Things where good but I still have some link errors (non resolved reference) but I did started the project as console without VCL and multi-threat. Since I am not familiar with compilation and specially borland, I thought you could give me some tips about it.

Sincerely

Louis MAYAUD

PS: Below is a link to my sources, it will be download-able for a mounth from today (29/06/2007) https://transfert.loria.fr/fichiers/97b ... CI2000.zip

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Post by mellinger » 29 Jun 2007, 05:22

Louis,

currently, all BCI2000 modules are full Borland VCL applications rather than console applications.

Borland project files are editable by hand but it is difficult to spot errors, so I recommend that you use the RandomNumber source module's project file as a starting point:

1) Create a new, empty project directory inside BCI2000/src/EEGSource, using a name that is appropriate for your new source module.
2) Create an empty directory "obj" inside the newly created directory.
3) Copy the RandomNumber.bpr project file, and the file RandomNumber.cpp to the new project directory.
4) Rename the bpr and the cpp file to what you want to be the name of the executable.
5) Using a text editor, do a search-and-replace within the bpr and the cpp files, replacing all occurrences of "RandomNumber" with the new name.
6) Move your new ADC class' cpp file into the new directory.
7) Open the bpr file using the Borland IDE.
8) In the IDE, choose View->Project Manager to get a list of project files, and check whether your ADC class cpp file is listed there; if not, remove the current ADC file, and add your new one to the list.
9) Add any required .lib files or auxiliary cpp files to the list of project files.
10) Compile and link using the IDE. When this works, a command-line "make clean && make all" should automatically include the new bpr file (unless you defined DONTCLEANME in the .makefiles file).

Hope this helps,
Regards,
Juergen

Locked

Who is online

Users browsing this forum: No registered users and 0 guests