LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time out a VI

Solved!
Go to solution

Hello !

 

So I have a VI with a while structure. I stop my while structure with a stop button.

I would like to set a Time out, if the program has been running for more than 5 minutes then it act like the stop button.

I know that I will need to use a OR gate but I don't know how I can make the Time out.

 

Thank you for your answers !

I link my VI.

 

0 Kudos
Message 1 of 5
(1,373 Views)
Solution
Accepted by topic author Naxmouk

Hi Naxmouk,

 

use the ElapsedTime ExpressVI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(1,363 Views)

Use Get Date/Time In Seconds before and during the loop. When the difference (current-before) - which is in seconds - exceeds 300, stop the loop.

I guess you have incredibly huge files to reach that limit.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 5
(1,361 Views)

Thank you I used it and it works !

0 Kudos
Message 4 of 5
(1,357 Views)

Hello, ty for your answer !

 

My files are not that huge, the need of a time out was just asked in the specifications !

0 Kudos
Message 5 of 5
(1,353 Views)