LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time out for While Loop


@GMAch wrote:

Hi,

 

is there any option to stop a while loop (or force it to start the next iteration) if the the execution time of the VIs in the loop exceeds a certain value?

 

...


The answer is NO.

 

You will have to fix the function that is hanging such that is no longer hangs.

 

Edit:

You could invoke the hanging sub-VI using "Start Asynchronous Call" and then use a "wait on Asynchronous Call" where you have configure a timeout. Then you could abort the call.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 11
(318 Views)