本文整理汇总了Python中VisionEgg.FlowControl.Presentation.controllers方法的典型用法代码示例。如果您正苦于以下问题:Python Presentation.controllers方法的具体用法?Python Presentation.controllers怎么用?Python Presentation.controllers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VisionEgg.FlowControl.Presentation
的用法示例。
在下文中一共展示了Presentation.controllers方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: FunctionController
# 需要导入模块: from VisionEgg.FlowControl import Presentation [as 别名]
# 或者: from VisionEgg.FlowControl.Presentation import controllers [as 别名]
texture_object.put_sub_image( curImList[0] )
p.add_controller(None, None, FunctionController(during_go_func=every_frame_func) )
# p.parameters.go_duration = ((numImsPerBlock + 1)/float(presentationFreq),'seconds')
p.parameters.go_duration = (3*(numImsPerBlock + 1)/float(presentationFreq),'seconds') # DJ: Why *3?
viewport.parameters.stimuli=[imageStim]
p.go();
if (run_as_standalone == 0):
par.setData(0)
# indicate the results
sendCommand(endBlock,0)
internalState = 0
# fixation cross
p.parameters.go_duration = (1,'seconds')
p.controllers = []
viewport.parameters.stimuli=[fixPt]
# indicate begining of a block, commented out to avoid double block starts ba
# sendCommand(beginBlock,0)
# p.go()
# please wait (while we get results)
p.parameters.go_duration = (1,'frames')
p.controllers = []
viewport.parameters.stimuli=[pleaseWait]
p.go()
# DJ: Do we need to process the output at all?
# request the results from the engine
time.sleep(0.010)