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.

Rainrate


Makada Jul 27, 2019 06:49 AM

Hi,

Im looking for a running rainrate in mm/hr in 0.1mm resolution. 

Ive seen this example below from Sam which i like, thanks Sam,but im not using a control port and i dont know how to get it working with my setup.

My setting is Public Rain_mm and Public Precipitation_type, i dont know what to use for "Rate" and "First".

Ideally when my precipitation_type is non zero, the example below has to start and stop and reset when precipitation_type is zero.

And instead of mSec it has to be seconds. 

Public DeltaT, Rate
Public First as Boolean = TRUE
BeginProg
Scan(1,Sec,0,0)
NextScan
SlowSequence
Do While True
WaitDigTrig(1,0)
If First Then
First = FALSE
Timer(1,mSec,2) 'reset and start timer
Else
DeltaT = Timer(1,mSec,4) 'read timer
Timer(1,mSec,2) 'reset and start timer
Rate = 0.2 / DeltaT 'rain per mSec
Endif
Loop
EndSequence

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