Changes

Jump to navigation Jump to search
10 bytes added ,  13:25, 1 May 2014
val= forgotten
Line 411: Line 411:     
== Buttonbox in Python and PsychoPy ==
 
== Buttonbox in Python and PsychoPy ==
 +
 
Download this site package to use the buttonbox: [https://pypi.python.org/pypi/RuSocSci rusocsci]
 
Download this site package to use the buttonbox: [https://pypi.python.org/pypi/RuSocSci rusocsci]
   Line 431: Line 432:     
Example using markers with the buttonbox in Python:
 
Example using markers with the buttonbox in Python:
 +
 
  <nowiki>
 
  <nowiki>
 
#!/usr/bin/env python
 
#!/usr/bin/env python
Line 441: Line 443:     
# wait for a single button press
 
# wait for a single button press
bb.sendMarker(100)    #This is your marker code, range code 1-255 </nowiki>
+
bb.sendMarker(val=100)    #This is your marker code, range code 1-255 </nowiki>
 
     −
Example using the Buttonbox in PsychoPy:
+
<br/>Example using the Buttonbox in PsychoPy:
    
  <nowiki>
 
  <nowiki>
Anonymous user

Navigation menu