![]() |
|
#5
|
|||
|
|||
You loop should work, but there is no connection between it and your callbacks. It loops through and then leaves Trial set to a value of 8. If you want Trial to update each time a key is pressed then increment it in your keyboard callback function.
Code:
Trial = 0 def onKeyDown(key): global Trial Trial += 1 viz.callback(viz.KEYDOWN_EVENT, onKeyDown) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Writing data more than once | TrashcanPatrol | Vizard | 2 | 01-06-2009 03:56 PM |
writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 05:18 AM |
Flagging the Data | Elittdogg | Vizard | 5 | 04-11-2008 11:40 AM |
Writing text files with executable | adimov | Vizard | 1 | 03-21-2008 03:21 PM |
Data Files | betancourtb82 | Vizard | 6 | 05-04-2006 02:43 PM |