Difference between revisions of "Brainvision"

From TSG Doc
Jump to navigation Jump to search
Line 17: Line 17:
 
== Presentation ==
 
== Presentation ==
 
  <nowiki>
 
  <nowiki>
'''-TemplateINFO.pcl'''
+
#TemplateINFO.pcl
  
 
output_port Oport = output_port_manager.get_port( 1 );
 
output_port Oport = output_port_manager.get_port( 1 );
  
 
+
#TemplateSUBS.pcl
'''-TemplateSUBS.pcl'''
+
Oport.send_code(100); #This is your marker code, range code 1-255
 
+
wait_interval(2);     #2ms delay for the code to be recorded by brainvision; 2ms->500hz sampling rate
Oport.send_code(100); ''#This is your marker code, range code 1-255''
+
Oport.send_code(0);   #Back to 0; now ready to send a new code</nowiki>
 
 
wait_interval(2); ''#2ms delay for the code to be recorded by brainvision; 2ms->500hz sampling rate''
 
 
 
Oport.send_code(0); ''#Back to 0; now ready to send a new code''</nowiki>
 
  
 
== Python ==
 
== Python ==

Revision as of 08:46, 1 May 2014

Brainvision

File:Brain-vision-llc.png

Software Documentation

Find the Brainvision analyzer manual here Media:BrainVision_Analyzer_UM.pdf

Find the Brainvision recorder manual here Media:BrainVision_Recorder_UM.pdf

Find the Brainvision macro cookbook manual here Media:Macro_Cookbook.pdf

Find the Brainvision RecView manual here Media:BrainVision_RecView_UM.pdf

Find the Brainvision Automation manual here Media:Automation_Reference_Manual.pdf


EEG Markers

Presentation

#TemplateINFO.pcl

output_port Oport = output_port_manager.get_port( 1 );

#TemplateSUBS.pcl
Oport.send_code(100);  #This is your marker code, range code 1-255
wait_interval(2);      #2ms delay for the code to be recorded by brainvision; 2ms->500hz sampling rate
Oport.send_code(0);    #Back to 0; now ready to send a new code

Python

#!/usr/bin/env python

# import the rusocsci.buttonbox module
from rusocsci import buttonbox 

# make a buttonbox
bb = buttonbox.Buttonbox()

# wait for a single button press
bb.sendMarker(100)
core.wait(0.002)
bb.sendMarker(0)