Hi Karthi,
1) To pause your simulation you would just need to kill all your timers. Then restart them when you want to resume the simulation. I went ahead and added this feature to Vizard, so it should be available in the next version.
2) You can use the viz.choose command to ask the user a question, however they wouldn't be able to use the joystick to select the answer.
3) There is an example in the tutorial folder that does just this. The file is called tutorial_savedata.py. It simply logs each key press the user makes and the time of the key press into a file.
Good luck!
|