Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to synchronize vi with system time

Hello. I'm new to LabVIEW and do not have a lot of experience, and I got a problem that i couldn't resolve. I need to synchronize my vi with system time, so it starts once per 5 minutes, makes full cycle and waits for the next stamp multiple to 5 (starts at 0:00:00, then at 0:05:00, then at...)but i dont know how 😞 In my vi I use counter SR-620 and 2 switchboards, so if you want to see sub VIs in my VI you should download SR-620 driver from ni.com site 🙂
0 Kudos
Message 1 of 12
(6,738 Views)

Put another while loop over the entire code and use wait.vi with the input as 300,000 and it should work as you want

 

Good luck !

 

lab

0 Kudos
Message 2 of 12
(6,722 Views)
No...it wont help. For example, if I start vi in 13:32:30 it should wait until 13:35:00 and only then start measurement. If I simply insert a delay, it will not force the vi to begin during certain time.
0 Kudos
Message 3 of 12
(6,713 Views)
use the "wait until next millisecond multiple" (the metronome icon function) with 300,000 ms.

"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 12
(6,702 Views)

No. Please,read the topic 1 post more attentively. I search for a way of start VI during time necessary to me. Simply having established a delay of it is not enough. Maybe you cant understand my question because of my English (excuse me please), so here is an example: I start the vi at 14:51:25- it should wait until 14:55:00 and only after that start the measurement! If I start the vi at 14:53:47- it should also wait until 14:55:00. It should start at 14:55:00, make full cycle and then again wait for next multiple to five time. So if I'll use only "wait until next millisecond multiple" I wont get the result I want 🙂

0 Kudos
Message 5 of 12
(6,684 Views)

MAzayko wrote:

No. Please,read the topic 1 post more attentively. I search for a way of start VI during time necessary to me. Simply having established a delay of it is not enough. Maybe you cant understand my question because of my English (excuse me please), so here is an example: I start the vi at 14:51:25- it should wait until 14:55:00 and only after that start the measurement! If I start the vi at 14:53:47- it should also wait until 14:55:00. It should start at 14:55:00, make full cycle and then again wait for next multiple to five time. So if I'll use only "wait until next millisecond multiple" I wont get the result I want 🙂


Humor me- give it a try.Smiley Wink

 

the wait for next multiple with a 300,000 input will exit every time the system clock is at a 5 minute mark regaurdless of when it starts.


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 12
(6,678 Views)

I've tried it. It does not work. 

Does anybody know how to synchronize timed loop with system time? 

 

 

Message Edited by MAzayko on 12-28-2009 12:55 AM
0 Kudos
Message 7 of 12
(6,647 Views)
can you post your code?

"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 12
(6,634 Views)
it's in first post 😉
0 Kudos
Message 9 of 12
(6,610 Views)
Up! Still need help 😞
0 Kudos
Message 10 of 12
(6,505 Views)