LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule

I got this schdeule timer program but there is a problem with it. When i want it to stop at a certain it did not stop on the specific time i want. Example when i want it to stop at 8.00am, it would stop at 8.01am. I really need help. Thanks.

0 Kudos
Message 1 of 3
(1,949 Views)

Hi,

 

You should wire "want seconds" input of  "Get Date/Time string" with True constant so you get seconds to your time string. It would be even better if you forget about that "Get date/time string" and compare timestamps instead. You should also add a small delay to your loops to avoid using CPU @ 100%. You can achieve this for example using "Wait (ms)" function inside your loops.

 

Hope this helps!

 

-Matti

0 Kudos
Message 2 of 3
(1,943 Views)

thanks alot for your help. It works by removing both the time on and off the "Get date/time string".

0 Kudos
Message 3 of 3
(1,935 Views)