Changes

Jump to navigation Jump to search
723 bytes added ,  17:44, 10 March 2015
no edit summary
Line 30: Line 30:     
== Presentation ==
 
== Presentation ==
 +
In the BITSI simple protocol you will have to reset the code manually to 0
 +
BITSI simple code:
 
  <nowiki>
 
  <nowiki>
 
#TemplateINFO.pcl
 
#TemplateINFO.pcl
Line 38: Line 40:     
Oport.send_code(100);  #This is your marker code, range code 1-255
 
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
+
wait_interval(4);      #4ms delay for the code to be recorded by brainvision; 2ms->500hz sampling rate so 2 samples available
 
Oport.send_code(0);    #Back to 0; now ready to send a new code</nowiki>
 
Oport.send_code(0);    #Back to 0; now ready to send a new code</nowiki>
 +
 +
In BITSI extended protocol the reset is done by a specific time set with the capital "T".
 +
BITSI extended:
 +
<nowiki>
 +
#TemplateINFO.pcl
 +
 +
output_port Oport = output_port_manager.get_port( 1 );
 +
 +
#TemplateSUBS.pcl
 +
 +
Oport.send_string("T");  #Specify the pulse length time
 +
Oport.send_code(4);    #4ms delay for the code to be recorded by brainvision; 2ms->500hz sampling rate so 2 samples available
 +
 +
Oport.send_string("P");  #Specify its a pulse you want to send out
 +
Oport.send_code(100);    #This is your marker code, range code 1-255
 +
#Now it resets itself automatically to 0 after the specified time
 +
</nowiki>
    
== Python ==
 
== Python ==

Navigation menu