Difference between revisions of "Contributions:BCI2000PythonBindings"
(→Example) |
(→See also) |
||
| Line 39: | Line 39: | ||
[[Contributions:Applications]] | [[Contributions:Applications]] | ||
| − | [[Category:Contributions]][[Category:User Application]] | + | [[Category:Contributions]][[Category:User Application]][[Category:External Interfaces]] |
Latest revision as of 18:16, 5 July 2012
Contents |
[edit] Synopsis
BCI2000PythonBindings currently provides a BCI2000Remote class that controls the BCI2000 Operator. It provides the functionality of the BCI2000Remote C++ class in Python.
To use it, import BCI2000Remote.py into Python. This Python module must reside in the same directory as the BCI2000RemoteLib library, which typically resides in the BCI2000/prog directory.
[edit] Location
http://www.bci2000.org/svn/trunk/src/contrib/ExternalLinks/BCI2000PythonBindings
[edit] Versioning
[edit] Author
juergen.mellinger@uni-tuebingen.de
[edit] Source Code Revisions
- Initial development: 4081
- Tested under: 4082
[edit] Functional Description
The BCI2000Remote Python class is an exact Python counterpart to the BCI2000Remote C++ class. For a description, see Programming Reference:BCI2000Remote Class.
[edit] Example
bci = BCI2000Remote()
print bci.OperatorPath
bci.WindowTitle = "Python controlled"
bci.SubjectID = "PY1"
bci.Connect()
bci.Execute( "cd ${BCI2000LAUNCHDIR}" )
bci.StartupModules( ( "SignalGenerator", "ARSignalProcessing", "CursorTask" ) )
bci.LoadParametersRemote( "../parms/examples/CursorTask_SignalGenerator.prm" )
bci.SetConfig()
print bci.GetParameter( "SubjectName" )
bci.Start()
bci.Execute( "Wait for Suspended 20" )
bci.Stop()
del bci
[edit] See also
Programming Reference:BCI2000Remote Class, Contributions:BCI2000Command, Contributions:BCI2000PresentationLink, Contributions:BCI2000Automation Contributions:Applications