Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BF/ENH: Adds Digital Stimulus Response Echo call to BBTK.
  • Loading branch information
dvbridges authored and peircej committed Jan 31, 2019
1 parent 0c3cea2 commit 5da328f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions psychopy/hardware/bbtk/__init__.py
Expand Up @@ -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))
Expand All @@ -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__":
Expand Down

0 comments on commit 5da328f

Please sign in to comment.