From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
This article introduces you to a Windows function that is similar to the poll function in Linux. You can use this function with LabVIEW to react when certain events occur in the operating system occur, such as a process reaching a specified state, a system event, or a mutex unlocking.
Description-Separate-2
How to Use
How-Separate-1
The equivalent function that can be used with LabVIEW is the Windows function WaitForSingleObject. This function waits until the object specified by the passed handle is in the signaled state, or until the specified time-out interval has elapsed.
The function WaitForSingleObject is contained in Windows' kernel32.dll. The attached VI demonstrates how to use it.
How-Separate-2
Additional Information
Additional-Separate-1
Use the similar functions WaitForSingleObjects, WaitForSingleObjectEx, and WaitForSingleObjectsEx to wait for multiple objects, and to enter an alertable wait state, respectively.