- 25 -
The MAX() and MIN() operators are used as follows:
Z = MAX(A,B);
The larger of A or B is put into Z. For MIN(), it is the smaller that is put into Z.
SteinhC(R) calculates the temperature of a thermistor from its resistance, using the
Steinhart and Hart equation. The coefficients used are those of the YSI 44006
thermistor.
TIME OPERATIONS
A group of time difference functions are provided:
t_DySYr(year)
Days since start of specified year
t_HrSYr(year)
Hours since start of specified year
t_MnSYr(year)
Minutes since start of specified year
t_IsLeap(year)
True if year is a leap year
t_DySince(y,m,d,h,m,s)
Whole days since specified date
t_HrSince(y,m,d,h,m,s)
Whole hours since specified date
t_MnSince(y,m,d,h,m,s)
Whole minutes since specified date
t_SeSince(y,m,d,h,m,s)
Seconds since specified date
For the seconds since function, the specified date must be less than 90 days before
the current date, or accuracy will be reduced. This is due to internal limitations on the
size of numbers. For the minutes function, the limit is 15 years. The limiting value is
8,388,607.
The following table gives the numeric ranges expected:
Year
1980 to present year
Month
1 -12
Day
1 month length
Hour
0 - 23
Minutes
0 - 59
Seconds
0 - 59
The date specified must always be less than or equal to the current date.
If any of the parameters are erroneous (minutes of 65, for example), the error code of
the result will be set accordingly (overrange or underrange).
If the specified date is greater than the current date, the function returns 0.
The reference date is the expiry time of the timer block the function is used in. This
does not change during the execution of the block, so things like slow sensors have
no effect on the returned values.
Summary of Contents for HDL1
Page 1: ...HDL1 HDL1 G5 Data Logger Operating Manual...
Page 2: ......
Page 8: ...iv THIS PAGE INTENTIONALLY LEFT BLANK...
Page 12: ...4 THIS PAGE INTENTIONALLY LEFT BLANK...
Page 20: ...12 THIS PAGE INTENTIONALLY LEFT BLANK...