Hi Guys and Gals,
Problem description: Built in functions such as the "sound input configure vi" have a call library function. The call library function for sound hangs under some unavoidable or unpredictable condtions
My solution: Add a timeout to the function call.
Question: How do I add a timeout to the call library function so that if it spends longer than a certain amount of time it will timeout.
Any other ideas also welcome of course.
You have to handle the timeout in the function called so you are probably out of luck. Once external code is called it is out of LabVIEW's hands.
Maybe you can dynamically launch a VI that calls the library function or put it in a consumer loop. That way at least it is only hanging it's own thread.