LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make my Labview vi program run at the same time everyday?

I have Labview vi that uses "Time Stamp Control & Indicator" on front panel to set time & date for program operation.
But, I cannot separate the Date from the Time for Start & Stop control.
I want pgm to run everyday (7days/week) at the same time (e.g. 8am to 630pm) - I don't care about the start & stop Date feature.
So, everyday I have to manually open the Control & change the date to today.
 
How can I make program only respond to Time start & stop?
 
Thanks,
jaceb
 
0 Kudos
Message 1 of 4
(3,425 Views)
You are doing it wrong. Write a program that runs always, but is mostly in a wait state Have it check the current time once in a while, If the time is right execute your tasks and go back to a sleep state.
 
Of course LabVIEW has a rich set of time tools, for example if you need individual parts of a timestamp, use "seconds to date/time" and unbundle (by name) whatever you need.. Check the online help for details.
0 Kudos
Message 2 of 4
(3,421 Views)
Thanks for the help.
0 Kudos
Message 3 of 4
(3,347 Views)
Of course rather than create yet something else that is running all the time, setup your VI to only execute for the desired amount of time, If you running windows you can use the task scheduler to launch it.
http://support.microsoft.com/kb/308569
Puts the burden on the OS and is not dependant on you starting it everytime you reboot, or having to put it in the start menu.  there are options for it to run even if you are not logged onto the system.
Although not absolutely certain, I am reasonably sure that mac and linux also have something similar.


Paul
Message 4 of 4
(3,339 Views)