01-17-2012 10:22 PM
Just take the vi.
01-17-2012 10:58 PM
Do you know why the time only stops at 6.33am? and i cant adjust the Current value..
01-17-2012 11:09 PM
I am not sure what you mean exactly.
I will try and explain how the vi should work.
It scans through the file and looks for [Start] and Info values and reads the data in between.
It then reads the system (your PC) time and looks for the closest time in data (obtained from the spreadsheet) and displays that. It also looks through all of the values and determines when the maximum value occured. I guess this is a bug as the maximum value (@ 12:40) should only be displayed after 12:40 so the vi needs to be modified to accomodate that.
01-18-2012 07:07 PM
Okay Thanks for the explanation.
I would like to ask what does the Upper limit and Lower Limit means? I've read the context help, but i still dont get it. Why do you set it at 00:02:30 and 00:00:00?
01-18-2012 10:57 PM
I have modified the VI to account for the bug I pointed out before. Also the vi checks if the current time is within 5 minutes of the sample from the present time and displays that. The 00:05:00 is just a numeric constant which represents 5minutes (this is the same as the sample interval in the spreadsheet file)
01-19-2012 07:33 PM
Hi ace, now this program ain't getting the max value..
01-19-2012 11:37 PM
Hello,
My assumption was that you are simulating real time data coming in to your system. Instead of real time data, you are reading from a spreadsheet thats all.
So when you run the program, it takes the current system time, and looks for a corresponding sample from the past which would within 5min (as this is your sampling interval). So for example, if your PC time is 8:07, it looks through the data and finds the 8:05 sample. It then looks through all the samples till 8:05 and finds the maximum value up to 8:05, there is no point (it doesnt make sense to me anyway) in displaying the maximum in the entire file (which in this case is @ 12:40) when you havent gone past that time in reality.
Hope that makes sense.
Also try to use highlight execution and othe debugging techniques to see what is actually happening with your program. There is no other way to learn, if thats the point that is!