02-17-2009 08:11 PM
Yes, this is how I have been trying to do it, however it seemed that the array was never empty - there is always some default value displayed on the front panel control, so I could not differentiate between user entered values and default ones. I have just discovered that this is not the case. Even though there are default values displayed on the front panel control, these are not put into the array until the user edits the control. This may make things simpler. I will battle on and see how it goes.
Thanks
Bradley Dawson
Science Engineering Workshop
University of New England
Armidale NSW 2351
Australia
02-17-2009 08:14 PM
After processing each set of timing values, reinitialize the array so it only has default values in it.
Mike...
11-15-2009 08:54 AM
would this work also?
11-15-2009 07:48 PM
pstew wrote:would this work also?
Are you trying to offer another solution to the question? (It is 9 months old!)
I'm not sure what you are trying to do in your VI. Your adding an elapsed time, which is since the VI started, to a very arbitrary time. Why 7:14:29.917 pm on Nov 11, 2009? And then throwing that into several in range and coerce functions where all the controls describing the range are empty. Even if they did have times in them, they would be for specific dates as well. So the comparisons are going to be meaningless.
11-16-2009 05:19 PM
11-16-2009 09:47 PM
11-18-2009 06:06 PM
what I did was have the elapsed time start at the beginning of the event I would set the current time to the time started and the elapsed time would be added to the beginning time. When the day ended, the elapsed time would go back to zero, so the dates wouldn't matter. The four times acted as four different times during the day that the program would be running there was a start and end time. I was just wondering if this solution would work fine, or if it had any problems.The program would give off a true or false boolean
11-18-2009 07:02 PM
11-18-2009 09:07 PM
11-18-2009 10:09 PM
I realize this thread was solved a long time ago, but it might interest some to know that there's a new feature in LabVIEW 2009 that simplifies this. That's the notion of absolute timing sources for timed structures. For instance, the code below uses a Timed Sequence in a for loop to execute certain code at various absolute times. It's pretty neat stuff.