Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Math Toolbox Functions : Difference Functions : DSUB
Q10656 - INFO: DSUB

DSUB calculates the difference between daily values of an existing variable, without rollover.  This will return negative results when they occur. 

SYNTAX:

DSUB(Cx)
where :
Cx is a daily conditional variable x

DSUB calculates the difference between daily values of the variable defined by Cx.  It will then display the results as a new variable.  If the previous day's values is not present, the function searches back up to 7 days to fine a value for Cx to determine the difference.  If no previous entry is found within those 7 days, a value of zero (0) is assumed for the difference calculation.

This function will produce negative values if the current value is less than the previous value.  When calculating changes in values from a device on which rollover occurs (i.e., a runtime meter) you may consider using the DDIF function.

NOTES:

The DSUB function can be used with Daily Detail variables (Hourly, 15 minute...) to calculate a daily result.  The DSUB function will use the last Daily Detail reading of the day minus the last Daily Detail reading from yesterday.

EXAMPLES:

V82 = DSUB(V70)

Variable 82 will contain a value which is the difference between today's value for variable 70 and yesterday's value for variable 70, as demonstrated below:

As we see above: 2.6758-2.4533 = 0.2225 which is rounded down to 0.22 because V82 is set to 2 decimal places.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 1/24/2008 11:43 AM.
Last Modified on 2/14/2011 12:05 PM.
Last Modified by Scott Dorner.
Article has been viewed 4614 times.
Rated 4 out of 10 based on 5 votes.
Print Article
Email Article