I am setting up a textual sheet in RTMC giving current conditions, as well as daily extremes. I would like to use my 10-min precipitation data to get the timestamp of the last record of measurable precipitation. I have a CR1000 datalogger with current firmware, Loggernet, and RTMC Pro.
So far, I have been able to get the most recent records' timestamp, but have not been able to iterate back to the last >0 record.
Thank you in advance for your help!
Are you looking to get this with CRBasic?
Public LastRain
Public LastRainTime as string * 31
Dim I
I = 0
Do
I += 1
LastRain = RainTable.Rain(1,I)
If LastRain > 0 or LastRain = NAN then
LastRainTime = RainTable.Timestamp(1,I)
exitdo
endif
Loop
* Last updated by: Sam on 2/8/2013 @ 9:02 PM *
Sam,
Thanks for the reply. I am actually attempting to get this value on a RTMC project. Would/could CRBasic code be applicable to the RTMC environment?
Still haven't solved this. Ideas?
Jeremy
In Sam's example, get RTMC to plot the varaible "LastRain"
Cheers
Grant
In order to use the variable "LastRain", do I need to add the above CRBasic code to my datalogger program?
If not, how would I call "LastRain"?
Would this work?:
"DataFile_1:Table1.Rain_in_Tot.LastRain"
Thanks!