How to test the modules?

Forum for software developers to discuss BCI2000 software development
Posts: 8
Joined: 18 Jan 2010, 09:21

How to test the modules?

Post by tmile77 » 08 Apr 2010, 08:27

Is there a way to create a testing environment for one filter in such a way that it runs independently from the other modules and the operator and that I can control the execution of its functions?

Reason why I want to do this is that I would like to control input and the output of the filter to be able to compare it (test it) against data created with the same filter but from another souce (same fileter programed in MATLAB for instance). I tried to do this with the UNITEST arhitecture, but I can't trick the filter into accesing the States and Parameters defined from outside.

Posts: 1065
Joined: 12 Feb 2003, 11:06

Post by mellinger » 12 Apr 2010, 09:15

You might check out the BCI2000 command line framework, which lets you run individual BCI2000 filters as executables, taking input from stdin and writing to stdout. Documentation is provided at ... Processing
On the wiki page, there is also an example how to run filters with modified parameters.

As an alternative, you may as well compile BCI2000 filters into DLLs which can then be loaded by Matlab as any other DLL. Documentation for the DLL framework is contained in the header file, at
and an example Matlab function accessing a DLL may be found at


Who is online

Users browsing this forum: No registered users and 2 guests