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: 

Beginner question: how do I get while loop to stop when time changes?

Solved!
Go to solution

Im using a 'Format Date/Time String vi' with a time format string of %H:%M, I want the while to stop looping, when the minute changes. How do I do tjis?

 

Cheers,

Sam 

0 Kudos
Message 1 of 4
(2,660 Views)

Hi Sam,

 

 

I hope the following ex help you.

 

If this is not you want kindly explain it further so that we can help you.

 

Regards,

 

Shrek

Message 2 of 4
(2,648 Views)
Solution
Accepted by topic author ssteel

Hi Sam,

 

instead of shrek's fiddling with strings and locals (property node.value is kind of local!) you should use a shift register and integer numbers...

CheckTime.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(2,633 Views)

Hi GerdW,

 

Hey you got it better.

 

I appriciate it.

 

 

Regards,

 

Shrek

 

0 Kudos
Message 4 of 4
(2,598 Views)