LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure - timeout reset by user events?

Solved!
Go to solution

A User Event can be used to produce a Timeout Event that doesn't get reset.

This example includes an "Init" event to get things started.

UserTO.png

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
Message 11 of 12
(526 Views)

It never occurred to me that a timeout event might never happen. If you have a regularly occurring user event that happens at a rate faster than the timeout, the timeout will never occur. Interesting. This means that you can't always rely on a timeout condition.

 

I often rely on a timeout in asynchronous event handlers to determine if the calling application is still running, so those processes can shut themselves down when their referants become inactive. So far this has worked, but I can see now there are cases where it would not.

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 12 of 12
(520 Views)