LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When PC System timing hits 0000hrs Loops back to start and runs again using Loop function?

You haven't bothered to read the help, have you? After you do that, click on the Create Basic Task or Create Task. You will end up pointing to your VI as the task to run.

 

How familiar are you with using Windows? I would hope more familiar than with LabVIEW which is why I recomended using this built-in tool of the OS instead of struggling to write something yourself. The task scheduler is available from the Aministrative Tools on the Control Panel.

0 Kudos
Message 11 of 57
(1,577 Views)

so sorry about that

 

I have an example attached.

How to control the pause function automatic control by the system timing? when only reaches 0000hrs, pause function execute?

0 Kudos
Message 12 of 57
(1,553 Views)

Now that is a bit different than 'auto re-run the VI' that you originally stated you wanted to do.

 

I would keep the current date in a shift register and periodically compare the current date to that. When the comparison fails, take the action you want and replace the value in the shift register with the new date.

0 Kudos
Message 13 of 57
(1,545 Views)

hmmm...Smiley Indifferent

any clear picture to show?

 

 

0 Kudos
Message 14 of 57
(1,542 Views)

this the diagram i working on it... Smiley Indifferent

0 Kudos
Message 15 of 57
(1,540 Views)
0 Kudos
Message 16 of 57
(1,527 Views)

hmmm... Smiley Indifferent

 pause execute when 0000hrs reaches?

0 Kudos
Message 17 of 57
(1,523 Views)

This answers your original question.

 

I really don't understand how you are trying to combine this with a "pause execute [sic]".

 

This code gives you a boolean value at the first instant the date changes.  You can do with it what you want, stop a loop, do something in a case structure, fire an event, ....

 

Now your "pause execution" requirement is completely different as Dennis has said.  And the biggest question would be what causes the pause to unpause itself?

0 Kudos
Message 18 of 57
(1,506 Views)

In 12 hr time there are two 00:00 occurances (midnight and noon).  Is this what you're asking for?:

 

Zero Hour.JPG

 

EDIT:  Oops, obviously you need to change that so it compares the hour to 12, not 0 (zero).

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 19 of 57
(1,460 Views)

@NIquist wrote:

In 12 hr time there are two 00:00 occurrences (midnight and noon).  Is this what you're asking for?:

 

 


I doubt that.  The way he wrote it, it sounds like he wants military time.  Midnight is 0000.  Noon is 1200 hours.

 

In normal time, there is no 00:00.  Midnight is 12:00am.  Noon is 12:00pm.

0 Kudos
Message 20 of 57
(1,454 Views)