LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create time out on hung library function call

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.

 

 

-Regards

-Eximo

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 1 of 2
(1,947 Views)

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.

 

 

=====================
LabVIEW 2012


0 Kudos
Message 2 of 2
(1,944 Views)