10-03-2010 09:24 PM
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.
10-04-2010 09:26 PM
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?
10-04-2010 09:36 PM
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.
10-04-2010 09:39 PM
hmmm...
any clear picture to show?
10-04-2010 09:40 PM
this the diagram i working on it...
10-04-2010 10:14 PM - edited 10-04-2010 10:15 PM
Like this.
10-04-2010 10:28 PM
hmmm...
pause execute when 0000hrs reaches?
10-04-2010 11:05 PM
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?
10-05-2010 03:42 PM - edited 10-05-2010 03:45 PM
In 12 hr time there are two 00:00 occurances (midnight and noon). Is this what you're asking for?:
EDIT: Oops, obviously you need to change that so it compares the hour to 12, not 0 (zero).
10-05-2010 03:47 PM
@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.