![]() |
#13
|
|||
|
|||
Don't give up hope yet. Clearly you have some work ahead of you, but listing what your missing is a start.
First, lets fix your stimulus presentation. Your syntax in the experiment task is incorrect. Place "yield" statments in front of 'viztask.wait' functions. Do not put a yield in front of plain functions like 'sceneOn.' Code:
def experiment(): while True: viz.MainScene.visible(viz.OFF) yield viztask.waitKeyDown(' ') sceneOn(1) yield viztask.waitTime(3) sceneOff() viztask.waitTime(10) sceneOn(2) d = viz.Data() yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT, d) pickedObject = viz.pick() recordTrialResponse(pickedObject, d.time) Vizard's installation directory has an example directory called file_io that has filewriting examples. If you put a tab between each of your data points and a new line between reach response the data file should import into Matlab or Excel nicely.
__________________
Paul Elliott WorldViz LLC |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sharing Files on SourceForge | farshizzo | Vizard | 1 | 09-03-2012 11:18 AM |
Project .avi or .mpeg file | pattie | Vizard | 2 | 02-06-2007 08:09 AM |