OK, so how would I do it using occurences. Let us take a simple case. When I
get a trigger from one part of my code, I need to start updating a counter,
say every 500msec. When the next trigger comes, I need to stop this counter.
I don't want to do it using polling of any kind. Any help is appreciated.
If LV had timers, I could just set the timer to 500msec. with initial state
disabled. Then when I want to trigger it, I just change its property to
Enable, timer will do the work, and then disable it later when I am done.
vishi
"defuflo" wrote in message
news:50650000000500000008F20000-1042324653000@exchange.ni.com...
> I don't know the task of your application, but the kind of triggering
> you mention about is much better to do with occu
rencies.
> Anywere, if you prefere to use notifications you can do this by
> placing your counting loop in a frame of state machine, where first
> frame waits for first notification ("10"), and in the second you place
> time-counting loop and in the same loop _queries_ (not waits) for
> second notification. But this approach is not at all time-precios in
> its second step - so its better to devide two tasks of updating time
> indicater and measuring final time (if the last one is more
> important).
> Also, it's not always a good practice in sending a notification and
> destroing the notifier immedeately after this (vi's quering this
> notifier risks not to receive the last one).
> And, BTW, there is a good Format To Date/time function in time/dialog
> palette that you can use in place of all mathematics you use to format
> a time string.