LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running test at certain times in the day

I am using LabVIEW 7.1 with Windows 2000.
I have a program that needs to run for a set amount of days. Each day this program has certain duties to perform at certain times in the day. I have it able to run for a number of days but I am still working on the time intervals between cycles. I am looking for either a certain vi or a certain method on how to do this. I appreciate your help.
Ron Deavers, CLD
0 Kudos
Message 1 of 6
(3,264 Views)
You have to keep tarck of elaspswed time. use the Elapsed Time express vi. it has many inputs that you can use to achieve your programming needs
0 Kudos
Message 2 of 6
(3,257 Views)
My inclination would be to use absolute timing instead of relative (elapsed) timing. The reason is twofold:

1. Absolute timing is dead easy to code and seems easier to manage as you introduce new and arbitrary events that might fall between preexisting events that you've created. Assuming you're not looking for ms accuracy, polling overhead won't be a big deal.
2. With elapsed time, you run the risk of progressively falling behind schedule if events take longer to execute than you have anticipated or coded for.

This is one of those "I'm sure it's been coded many times before" applications, but it seemed like fun, so I coded it up using a standard state machine. Mine uses a schedule-info array to define events and assumes that the elements of the array are ordered chronologically.

Hope it helps,
John
Message 3 of 6
(3,240 Views)
Thanks. I will try this out and see if it works. I do appreciate your help.
Ron Deavers, CLD
0 Kudos
Message 4 of 6
(3,213 Views)
I appreciate the help and it seems to run fine. I am wanting to know if this can run for a consecutive number of days without user input.
Ron Deavers, CLD
0 Kudos
Message 5 of 6
(3,197 Views)
The example should run indefinitely, starting over at the beginning of the task list each day.

--John
0 Kudos
Message 6 of 6
(3,189 Views)