Skip to content

Proxy server connecting BCI with stimulation hardware

License

Notifications You must be signed in to change notification settings

sjaustirni/stimub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stimub

Script for connecting Brain-Computer Interface components with a stimulation hardware.

Possible Inputs:

  • TCPInput: String-based TCP packets (for instance, from OpenVibe or Unity)
  • ConsoleInput: Console input (Enter key) from user (useful for testing stimulation hardware)

Possible Stimulations:

  • NiDAQTrigger: NiDAQ hardware
  • ConsoleTrigger: useful for testing different inputs without access to NiDAQ hardware

Examples

You can combine the inputs and stimulations as you wish:

# Read events from OpenVibe and trigger console output
p = Proxy(TCPInput("127.0.0.1", 5679, "OVTK_GDF_Right"), ConsoleTrigger())
p.start()
# Read events from console input and trigger NiDAQ
p = Proxy(ConsoleInput(), NiDAQTrigger(5, 0.002, 0.002, 3))
p.start()
# Read events from Unity and trigger NiDAQ
p = Proxy(TCPInput("127.0.0.1", 5690, "MotorIntention"), NiDAQTrigger(5, 0.002, 0.002, 5))
p.start()

See main.py for more info.

About

Proxy server connecting BCI with stimulation hardware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages