Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Return Timestamp of Last Measurable Event


jeremy Feb 6, 2013 04:54 PM

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!


Sam Feb 9, 2013 03:58 AM

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 *


jeremy Feb 11, 2013 06:21 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?


jeremy Feb 27, 2013 12:27 AM

Still haven't solved this. Ideas?


Grant Feb 28, 2013 11:42 PM

Jeremy

In Sam's example, get RTMC to plot the varaible "LastRain"

Cheers

Grant


jeremy Mar 4, 2013 04:35 PM

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!

Log in or register to post/reply in the forum.