WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-07-2010, 12:14 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Timer events behave differently than all other events. They are only sent to the event handler that started the timer. Also, waiting for any timer event doesn't seem very useful, since a lot of other vizard modules use timer events internally.

I would suggest using viztask.Signal objects. The documentation contains sample code for using task signals. The following code shows how to create a task signal:
Code:
timer_signal = viztask.Signal()
In your timer callback you can trigger the signal:
Code:
timer_signal.send()
And in your task you can wait for the signal to be triggered using this code:
Code:
yield timer_signal.wait()
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
timer question again Elittdogg Vizard 3 10-18-2007 10:29 AM
Timer speed Jerry Vizard 1 12-08-2006 11:01 AM
sending event markers to a monitoring computer mikestatic Vizard 3 01-26-2006 09:23 AM
Elapse timer astull Vizard 1 12-14-2005 11:34 AM
Timer event documentation pkhoosh Vizard 1 10-21-2005 10:12 AM


All times are GMT -7. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC