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.

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
(144 Views)