WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-02-2009, 06:06 AM
Saz Saz is offline
Member
 
Join Date: Nov 2008
Posts: 36
running an executable for a specific time period

Hi there,
I've got an executable of my program that performs a number of different operations and eventually outputs data to a file. How would I go about inserting code into the program so that the file runs for 30 secs and then stops automatically. I can do it so that the data collection only lasts for 30 secs but would like something a little more elegant and automated

Thanks!
Reply With Quote
  #2  
Old 03-02-2009, 09:26 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The following code will execute the viz.quit command after 30 seconds:
Code:
import vizact
vizact.ontimer(30,viz.quit)
Reply With Quote
  #3  
Old 03-03-2009, 01:37 AM
Saz Saz is offline
Member
 
Join Date: Nov 2008
Posts: 36
Thank you - you're a star!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Elittdogg Vizard 5 10-10-2007 02:49 PM


All times are GMT -7. The time now is 06:18 AM.


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