Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Press A to toggle acquisition
- Press spacebar to drop a marker
- '''
- import sys
- import biopacndt
- import viz
- import vizact
- import vizinfo
- # Connect to the AcqKnowledge server
- try:
- acqServer = biopacndt.AcqNdtQuickConnect()
- except biopacndt.ACQException:
- viz.log(viz.LOG_ERROR, 'Exiting application, no AcqKnowledge servers found')
- sys.exit()
- viz.go()
- vizinfo.InfoPanel()
- viz.clearcolor(viz.SLATE)
- #You can change the label “stimulus” to whatever you want the event to be labeled as
- def insert_marker():
- acqServer.insertGlobalEvent('stimulus', '', '')
- vizact.onkeydown(' ', insert_marker)
- vizact.onkeydown('a', acqServer.toggleAcquisition)
Add Comment
Please, Sign In to add comment