Problem Launching BCI

Known Issues and Problems with BCI2000
Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Problem Launching BCI

Post by Birislab » 19 Dec 2015, 18:27

Dear all,
I am new in BCI2000 software. I am using SynAmps RT amplifier to record EEG data. I have built BCI2000 from the source code. I am having an error saying " Make sure Acquire is running and the server is enabled at the correct port". From BCI wiki I found that, I need to start Acquire, click on the S symbol in the top right corner (to enable the server) and start the server on any port before starting BCI2000.http://www.bci2000.org/wiki/index.php/C ... uroscanADC

My question is, what is acquire, how can I get Acquire.exe ? Is this related with scan 4.3 or other versions. Do I need another license other than AccessSDK (DOngle) for that? Where is the S symbol? Can you provide some guidance and instructions to solve this problem. I have attached images of the errors.

https://www.dropbox.com/s/h2tnt3ael7ua8 ... r.jpg?dl=0
https://www.dropbox.com/s/owhq6l5lja5lm ... 5.JPG?dl=0
Last edited by Birislab on 01 Feb 2016, 11:48, edited 1 time in total.

boulay
Posts: 382
Joined: 25 Dec 2011, 21:14

Re: Problem Launching BCI

Post by boulay » 21 Dec 2015, 00:07

I've never used any SynAmps hardware, but my guess is that "Acquire" is software that is supposed to come with their hardware.

You can also see a different answer to a similar question from about a year ago:
http://www.bci2000.org/phpbb/viewtopic. ... 7800#p7800

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 21 Dec 2015, 22:05

Birislab,

the Scan software is what typically comes with the SynAmps hardware as their standard recording software. The “S” button streams the data over UDP to a client, i.e., BCI2000 in this case.

The AccessSDK is another software that Compumetrics Neuroscan sells as a more direct way to stream data without their Scan software.

BCI2000 supports both interfaces through user contributions, however I am only familiar with the Scan interface.

Both interfaces require a license from Compumetrics Neuroscan and are copy protected through a USB dongle. My best guess it that if you lab has bought those SynAmps, it also got a USB dongle for Scan 4.4 or 4.5. The first step thus would be to locate Scan on the recording machine (typically in "C:\Program Files\Neuroscan\Scan4.5" folder) and the dongle that should be attached. If you can't locate either of them, I am sure that the Compumetrics Support might be able to provide you with a replacement dongle and software. Second step would be to get Scan to acquire data. Finally, you then use the batch file and parameter fragment outlined in the thread referenced below to start and configure BCI2000. If BCI2000 and Scan run on the same machine, and you did not change the standard Scan configuration, this should work out of the box. If not let me know, I might be able to troubleshoot the issue from there.

http://www.bci2000.org/phpbb/viewtopic. ... 7800#p7800

Regards, Peter

Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Re: Problem Launching BCI

Post by Birislab » 21 Dec 2015, 23:57

Peter,
Thank you for your reply. Your elaborate answer removed a lot of confusions. We were given only one USB Dongle when we purchased SynAmps Hardware.Should I ask then about providing license for scan 4.5? I have been in contact with the neuroscan, they said that I have to build my own application using SDK. I am not sure how to do that. It would be very much helpful if your share some instructions about that.

I appreciate your help.
Thank you

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 22 Dec 2015, 00:23

Brislab,

you can probably kindly ask Compumetrics for the USB dongle for Scan 4.5. After all, they otherwise just sold you a device without an out of the box recording software.

In the meantime, if you got an AccessSDK license (and corresponding dongle), you can try to get the corresponding BCI2000 source module to work with your SynAmps. This might require going back and forth a bit though. Let me know.

http://www.bci2000.org/wiki/index.php/C ... nAccessSDK

Regards, Peter

Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Re: Problem Launching BCI

Post by Birislab » 17 Jan 2016, 17:19

hey peter,
I am trying to follow Mu Rhythm BCI Tutorial described here http://www.bci2000.org/wiki/index.php/U ... I_Tutorial. But I am facing some problems.

1. I have to modify a batch file to use Neuroscan.exe instead of the SignalGenerator. I have a synamps RT system, should I use NeuroscanAccess or Neuroscanclient? accordint to creating batch file section described here http://www.bci2000.org/wiki/index.php/C ... rce_Module. It is said that, " replace SignalGenerator with your source module's executable name, e.g. NeuroscanClient ", do I need to change all the SignalGenerator to NeuroscanClient or NeuroscanAccess in a text editor ?

2. Do I need to load both parms/mu_tutorial/InitialMuSession.prm. and parms/fragments/amplifiers/<YourAmplifier>.prm. parameter file ? For my amplifier parameter file I should follow this http://www.bci2000.org/wiki/index.php/C ... nAccessSDK, right ?

Thank you

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 18 Jan 2016, 11:21

Brislab,

@1: The batch file below should start start the necessary programs. In Scan you need to enable and start the data stream. BCI2000 will then pick it up once you hit the "Set Config" button.

Batch File:

Code: Select all

taskkill /F /IM Acquire.exe /T
taskkill /F /IM Scan4.exe /T
taskkill /F /IM NeuroscanClient.exe /T
taskkill /F /IM operator.exe /T

cd ..\prog
start operator.exe 
start NeuroscanClient.exe 127.0.0.1
start ARSignalProcessing.exe 127.0.0.1
start CursorTask.exe 127.0.0.1 
cd ..

wait.exe 3
cd "C:\Program Files\Neuroscan\Scan4.5"
start Acquire.exe
@2: Please copy the text below into a text file and save it as your neuroscan_scan_fragment.prm. Please also check that the sampling rate is indeed set to 1250 Hz within the Synamp software, and that you indeed have 64 channels enabled.

Code: Select all

Source:Signal%20Properties:DataIOFilter int SourceCh= 64 16 1 % // number of digitized and stored channels
Source:Signal%20Properties:DataIOFilter int SampleBlockSize= 50 32 1 % // number of samples transmitted at a time
Source:Signal%20Properties:DataIOFilter int SamplingRate= 1250 256Hz 1 % // sample rate
Source:Signal%20Properties:DataIOFilter list ChannelNames= 64 ch01 ch02 ch03 ch04 ch05 ch06 ch07 ch08 ch09 ch10 ch11 ch12 ch13 ch14 ch15 ch16 ch17 ch18 ch19 ch20 ch21 ch22 ch23 ch24 ch25 ch26 ch27 ch28 ch29 ch30 ch31 ch32 ch33 ch34 ch35 ch36 ch37 ch38 ch39 ch40 ch41 ch42 ch43 ch44 ch45 ch46 ch47 ch48 ch49 ch50 ch51 ch52 ch53 ch54 ch55 ch56 ch57 ch58 ch59 ch60 ch61 ch62 ch63 ch64 // list of channel names
Source:Signal%20Properties:DataIOFilter floatlist SourceChOffset= 64 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 % % // Offset for channels in A/D units
Source:Signal%20Properties:DataIOFilter floatlist SourceChGain= 64 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.0298023 0.003 % % // gain for each channel (A/D units -> muV)
Storage:Documentation:DataIOFilter string ID_System= % // BCI2000 System Code
Storage:Documentation:DataIOFilter string ID_Amp= % // BCI2000 Amp Code
Storage:Documentation:DataIOFilter string ID_Montage= % // BCI2000 Cap Montage Code
Visualize:Timing:DataIOFilter int VisualizeTiming= 1 1 0 1 // visualize system timing (0=no, 1=yes) (boolean)
Visualize:Source%20Signal:DataIOFilter int VisualizeSource= 1 1 0 1 // visualize raw brain signal (0=no, 1=yes) (boolean)
Visualize:Source%20Signal:DataIOFilter int VisualizeSourceDecimation= 5 1 1 % // decimation factor for raw brain signal
Visualize:Source%20Signal:DataIOFilter int VisualizeSourceTime= 2 2 0 % // how much time in Source visualization
Visualize:Source%20Signal:DataIOFilter int SourceMin= 0 -100muV % % // raw signal vis Min Value
Visualize:Source%20Signal:DataIOFilter int SourceMax= 250 100muV % % // raw signal vis Max Value
Source:NeuroscanADC string ServerAddress= localhost:4000 // address and port of the Neuroscan Acquire server
Source:Alignment:AlignmentFilter int AlignChannels= 0 0 0 1 // align channels in time (0=no, 1=yes)
Source:Alignment:AlignmentFilter floatlist SourceChTimeOffset= 0 0 % % // time offsets for all source channels (may be empty)
Source:Online%20Processing:TransmissionFilter list TransmitChList= 64 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 // list of transmitted channels
System:Core%20Connections string SignalSourcePort= 1061 4200 1024 65535 // the SignalSource module's listening port
System:Core%20Connections string SignalSourceIP= 10.25.147.234 127.0.0.1 % % // the SignalSource module's listening IP
System:Configuration matrix SignalSourceVersion= { Framework Revision Build } 1 2.x % Apr%2018%202009 // SignalSource version information
System:Core%20Connections string SignalProcessingPort= 1062 4200 1024 65535 // the SignalProcessing module's listening port
System:Core%20Connections string SignalProcessingIP= 10.25.147.234 127.0.0.1 % % // the SignalProcessing module's listening IP
Connector:ConnectorInput list ConnectorInputFilter= 0 // list of state names or signal elements to allow, "*" for any, signal elements as in "Signal(1,0)"
Connector:ConnectorInput string ConnectorInputAddress= % localhost:20320 % % // IP address/port to read from, e.g. localhost:20320

Further, I can recommend to read the post and the instructions on mu/beta cursor task experiments. If you follow the PDF that is linked in this post, you should be fairly successful in training somebody to control the cursor just by modulating mu/beta.

http://www.bci2000.org/phpbb/viewtopic. ... sket#p8146

Regards, Peter

Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Re: Problem Launching BCI

Post by Birislab » 18 Jan 2016, 18:04

Peter,

Thank you for your quick reply. I do not have scan software. I am using AccessSDK to interface with BCI2000 following your reply
pbrunner wrote: In the meantime, if you got an AccessSDK license (and corresponding dongle), you can try to get the corresponding BCI2000 source module to work with your SynAmps. This might require going back and forth a bit though. Let me know.

http://www.bci2000.org/wiki/index.php/C ... nAccessSDK
How should I create batch file if I use SDK instead of Acquire.exe?

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 18 Jan 2016, 19:15

Brislab,

as this might require a bit of debugging, can you please install the BCI2000 toolchain on your PC:

1) Microsoft Visual Studio 2012 Express
https://www.microsoft.com/en-us/downloa ... x?id=34673

2) Microsoft Visual Studio 2012 SP4
https://www.microsoft.com/en-us/downloa ... x?id=39305

3) CMake 3.3.2
https://cmake.org/files/v3.3/cmake-3.3.2-win32-x86.exe

4) TortoiseSVN
https://tortoisesvn.net/downloads.html'

Use TortoiseSVN to download the most recent BCI2000 SVN trunk:
http://www.bci2000.org/svn/trunk

Build BCI2000 with all source modules in debug mode and report back once this is completed.

Regards, Peter

Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Re: Problem Launching BCI

Post by Birislab » 18 Jan 2016, 20:01

hey peter,
I have already installed those tools (using VS 2010 instead of 2012) and I think have built BCI2000 from the source code successfully.

https://www.dropbox.com/home?preview=ggg.JPG

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 18 Jan 2016, 20:26

Brislab,

can you please check whether you are compiling the current trunk version, as this supports only VS2012.

Regards, Peter

Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Re: Problem Launching BCI

Post by Birislab » 18 Jan 2016, 20:35

peter,

I am using this link for getting the current version http://www.bci2000.org/svn/tags/releases/current/
as described here http://www.bci2000.org/wiki/index.php/P ... ient_Setup

Thank you

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 18 Jan 2016, 20:40

Brislab,

the current points towards the last release. If we need to modify the source code, it makes sense to use the current developer branch, i.e., the trunk:

http://www.bci2000.org/svn/trunk

Please download that using TortoiseSVN and install the VS2012 Express + SP4 and CMake 3.3.2. toolchain and generate a 32-bit project file using the batch file in the build folder. When asked chose yes for all source modules. Build this in debug mode. Once there we will set a date where I will walk you through the debugging over a TeamViewer session.

Regards, Peter

Birislab
Posts: 7
Joined: 09 Sep 2015, 12:39

Re: Problem Launching BCI

Post by Birislab » 29 Jan 2016, 09:17

Peter,

I have built BCI2000 from trunk version. Can you suggest a convenient time for you to have a Team Viewer session about the problem I am having with BCI2000.

Thank you for the help.

pbrunner
Posts: 344
Joined: 17 Sep 2010, 12:43

Re: Problem Launching BCI

Post by pbrunner » 01 Feb 2016, 15:21

Brislab,

we have isolated the problem to a version mismatch between the AccessSDK (NSDevice.dll) and the system device drivers for the Synamp2.

We have contacted Neuroscan for an updated version of their AccessSDK libraries.

One we have the updated drivers, we will contact you to test the new libraries.

Regards, Peter

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest