Difference between revisions of "ButtonBoxes"

From TSG Doc
Jump to navigation Jump to search
Line 23: Line 23:
 
== Psychopy Settings ==
 
== Psychopy Settings ==
  
<code>#!/usr/bin/env python from psychopy import core, visual, event from rusocsci import buttonbox import logging, time</code>
+
{|
<code>##Setup Section</code>
+
| <code>#!/usr/bin/env python</code>
<code>#logging.getLogger().setLevel(logging.DEBUG) # use this for debug info</code>
+
|-
<code>win = visual.Window([400,300], monitor="testMonitor") bb = buttonbox.Buttonbox()</code>
+
| <code>from psychopy import core, visual, event</code>
<code>##Experiment Section</code>
+
|-
<code>b = bb.waitButtons(maxWait = 10.0, buttonList=['A']) print("b: {}".format(b))</code>
+
| <code>from rusocsci import buttonbox</code>
<code>##Cleanup Section</code>
+
|-
<code>core.quit()</code>
+
| <code>import logging, time</code>
 +
|-
 +
| <code>## Setup Section</code>
 +
|-
 +
| <code>#logging.getLogger().setLevel(logging.DEBUG) # use this for debug info</code>
 +
|-
 +
| <code>win = visual.Window([400,300], monitor="testMonitor")</code>
 +
|-
 +
| <code>bb = buttonbox.Buttonbox()</code>
 +
|-
 +
| <code>## Experiment Section</code>
 +
|-
 +
| <code>b = bb.waitButtons(maxWait = 10.0, buttonList=['A'])</code>
 +
|-
 +
| <code>print("b: {}".format(b))</code>
 +
|-
 +
| <code>## Cleanup Section</code>
 +
|-
 +
| <code>core.quit()</code>
 +
|-
 +
|}
  
 
== Matlab Settings ==
 
== Matlab Settings ==

Revision as of 10:18, 12 March 2014

General

Hardware

Revisions

Revision 1

Revision 2

Revision 3

Revision 4

Presentation Settings

File:Buttonbox1.png

Psychopy Settings

#!/usr/bin/env python
from psychopy import core, visual, event
from rusocsci import buttonbox
import logging, time
## Setup Section
#logging.getLogger().setLevel(logging.DEBUG) # use this for debug info
win = visual.Window([400,300], monitor="testMonitor")
bb = buttonbox.Buttonbox()
## Experiment Section
b = bb.waitButtons(maxWait = 10.0, buttonList=['A'])
print("b: {}".format(b))
## Cleanup Section
core.quit()

Matlab Settings

Inquisit Settings

Matlab Settings

E-Prime