RB730

To import RB730, you can either use: `python from psychopy_cedrus.cedrus import RB730 ` or, any time after psychopy.plugins.activatePlugins has been called: `python from psychopy.hardware.cedrus import RB730 `

class psychopy_cedrus.cedrus.RB730(port, baudrate=115200, mode='XID')[source]

Class to control/read a Cedrus RB-series response box

clearBuffer()[source]

Empty the input buffer of all characters. Call this to clear any keypresses that haven’t yet been handled.

getBaseTimer()[source]

Retrieve the current time on the base timer

getInfo()[source]

Get the name of this device

getKeyEvents(allowedKeys=(1, 2, 3, 4, 5, 6, 7), downOnly=True)[source]

Return a list of keyEvents Each event has the following attributes:

keyEvt.key is the button pressed (or released) (an int) keyEvt.rt [=float] is the time (in secs) since the rt clock was last reset (a float) keyEvt.direction is the direction the button was going (‘up’ or ‘down’)

allowedKeys will limit the set of keys that are returned (WARNING: info about other keys is discarded) downOnly limits the function to report only the downward stroke of the key

measureRoundTrip()[source]
readMessage()[source]

Read and return an unformatted string from the device (and delete this from the buffer)

resetBaseTimer()[source]
resetTrialTimer()[source]
sendMessage(message)[source]
waitKeyEvents(allowedKeys=(1, 2, 3, 4, 5, 6, 7), downOnly=True)[source]

Like getKeyEvents, but waits until a key is pressed


Back to top