Permalink
Browse files

BF/ENH: Adds Digital Stimulus Response Echo call to BBTK.

  • Loading branch information...
dvbridges authored and peircej committed Jan 21, 2019
1 parent 0c3cea2 commit 5da328fcf16634345fba9aa7a4fbe88790947c52
Showing with 5 additions and 2 deletions.
  1. +5 −2 psychopy/hardware/bbtk/__init__.py
@@ -407,7 +407,7 @@ def createSensorCode(sensor, eCodes, idx):
else:
self.sendMessage(b'PATT') # Set to exact port trigger match
self.pause()
if testDuration:
if int(testDuration) >= 0:
self.sendMessage(b'TIML')
self.pause()
self.sendMessage(b"%i" % int(testDuration * 1000000))
@@ -417,7 +417,10 @@ def createSensorCode(sensor, eCodes, idx):
time.sleep(5)
self.sendMessage(b'PCCR') # Sequence complete
self.pause()
self.sendMessage(b'RUCR') # run sequennce
if int(testDuration) == 0:
self.sendMessage(b'RUSR') # DSRE
else:
self.sendMessage(b'RUCR') # DSCAR
self.pause()

if __name__ == "__main__":

0 comments on commit 5da328f

Please sign in to comment.