I'm trying to make a script for my EEG records using BCI2000. I'm following the instructions in the wiki; however, I get several errors. In order to understand the syntax, I tried the examples of the wiki.
I attached the jpg screen shot of the preferences dialog, so you can see how I configured it. The onConnect.bciscript works fine, this is the content of the script:
LOAD PARAMETERFILE ../parms/PILOTO3.prm; SETCONFIG
But the onStart.bciscript doesn't work:
x:=0; WHILE x<10; LOG ${x:=x+1}; END
this script is an example in the wiki, and I get this errors in the System Log:
2014-10-20T20:50:14 - Unknown command: "x:=0"
2014-10-20T20:50:14 - Unknown command: "WHILE x<10"
2014-10-20T20:50:14 - Unknown command: "LOG ${x:=x+1}"
2014-10-20T20:50:14 - Unknown command: "END"
I tried with other examples of the wiki and I also get this errors. Basically, what I want to do with my script is to detect an specific stimulus (using the stimulusCode state) and suspend the run, until the subject clicks a key and then resume the run, something like this:
myvar = GET STATE stimulusCode
IF [myvar==18] THEN suspend
--onSuspend
WAIT FOR click THEN resume
I would really appreciate your help
Best regards
Miguel A. Porta
UAMI-LINI
About scripting
Who is online
Users browsing this forum: No registered users and 0 guests
