ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create schedule program on weekly basis

i was wondering wether i could use labview for switching on and off a device based on time on a weekly schedule
0 Kudos
Message 1 of 4
(4,660 Views)

Yes not too hard, I would use a state machine.

Run until error:

    Check schedule vs current system time

        if scheduled time >= current time do event (ie, turn on/off device)

 

   depending on the accuracy and jitter allowe you can implement this different ways.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(4,644 Views)

If you're developing an application to run in Windows, I've made use of the Scheduled Tasks feature in Windows to launch LabVIEW applications at a certain date/time...

 

The following walk-through from LifeHacker describes setting up a scheduled task for running Defrag, but similar steps can be followed to run any executable using the task scheduler:

 

http://lifehacker.com/153089/hack-attack-using-windows-scheduled-tasks

 

-Bob

Message Edited by B O B on 01-19-2010 01:10 PM
0 Kudos
Message 3 of 4
(4,640 Views)
You may also wish to look at this example.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(4,629 Views)