Question 1: Is there any documentation on the timer function ? We use here DOORS 9.3 but in the integrated DXL Integration i can't find anything about this commands. i found the command reference on the web where a set of timer functions is mentioned but only the command without any description of the parameters. For this commands i found the parameters: DBE dbe_timer = timer(db db_form, int i_timeout, Callback_function, "Timer") startTimer(dbe_timer) stopTimer(dbe_timer) For this commands i dont know the right parameters: getTimerInterval getTimerName getTimerRunning isTimer Question 2: I use the timer to execute an autosave function. With a fix autosave time it works fine. Currently i want the user to change the time to next autosave event at runtime. But the set command leads to an an "Doors internal error": Is there any way to stop the timer set an new timeout time and restart the timer ?
void Callback_Function(DBE dbe_dummy)
{
stopTimer(dbe_timer)
set(dbe_timer,i_new_timeout)
startTimer(dbe_timer)
}
Thanks in advance, for your answers !
TheKey - Thu Oct 24 05:58:45 EDT 2013 |
Re: Timer Function Documentation You cannot change the interval once the DBE has been created. You should put the logic in the callback function so it only acts when a certain number of intervals have passed. Forget the getTimer functions. They do not seem to have anything to do with the timer DBE. |
Re: Timer Function Documentation Those 4 commands take an "int TimerNumber" parameter which, as Tony said, you don't care about. It seems the timer DBE activates a new "Timer. I could think of no praactical use for manipulating those internal timers. Here is some code to check it out I wrote years ago. You want to run the code, then activate something with a timerDBE, then run the code again.
And here is someone elses sample code from years ago.
-Louie |