(deadband history [(type|flag [setting...])...])
The deadband status in the following foramt:
(deadband history [(type|flag setting) ...])
if successful, where (except for enable) only those types or flags that have been configured are reported. Otherwise, one of the following errors:
(error "History history does not exist") (error "No value for deadband on point history") (error "Bad type type|flag for deadband on point history")
This command sets a deadband on a history, such that new values falling within that deadband are not recorded.
A deadband is used to reduce the amount of data stored by only storing data if there is a significant change in value. This approach is superior to simply reducing the sampling frequency, which will lose information when data changes quickly, and will waste storage by saving the same values when data doesn't change. The deadband approach defines a resolution below which changes in data are deemed to be 'noise' and therefore ignored.
![]() | In order for this flag to be set to true, at least one type must be set to a non-zero value. Otherwise, it will return false. |

![]() | If absolute and percent are used together there is an AND relationship between them. The Cascade Historian will ignore any value falling within either deadband. Only those values falling outside all deadbands (or equal to the outermost) will be recorded. |
This command corresponds to the Cogent C API function HI_Deadband and the hist_deadband dynamic library function.
Hist> (deadband p6 (enable t) (absolute 50)) (1) (deadband p6 (enable t) (absolute 50)) Hist> (deadband p6) (2) (deadband p6 (enable t) (absolute 50)) Hist> (deadband p6 (enable nil)) (3) (deadband p6 (enable nil) (absolute 50)) Hist> (deadband p6 (percent 10) (timelimit 5)) (4) (deadband p6 (enable nil) (absolute 50) (percent 10) (timelimit 5)) Hist> (deadband p6 (enable t) (countlimit 15) (timelimit 12)) (5) (deadband p6 (enable t) (absolute 50) (percent 10) (timelimit 12) (countlimit 15)) Hist> (deadband p6 (absolute 0) (percent 0) (timelimit 0) (countlimit 0)) (6) (deadband p6 (enable nil)) Hist> (deadband p6 (percent 7)) (7) (deadband p6 (enable nil) (percent 7)) Hist> (deadband p6 (enable t)) (8) (deadband p6 (enable t) (percent 7))
| (1) | Enables the deadband and sets a type or flag. |
| (2) | Queries for all types or flags. |
| (3) (6) | Disables the deadband. |
| (4) (5) (7) | Adds/changes type or flag setting(s). |
| (8) | Enables the deadband. |
You can set a deadband with a single command, or with multiple commands. For example, this command:
Hist> (deadband p8 (enable t) (percent 15) (timelimit .5))
(deadband p8 (enable t) (percent 15) (timelimit .5))gives the same result as these three commands:
Hist> (deadband p8 (percent 15)) (deadband p8 (enable nil) (percent 15)) Hist> (deadband p8 (timelimit .5)) (deadband p8 (enable nil) (percent 15) (timelimit .5)) Hist> (deadband p8 (enable t)) (deadband p8 (enable t) (percent 15) (timelimit .5))
This example shows what happens when prior values are stored (prior t), and when they are not (prior nil). The default is (prior t). The deadband settings are:
(deadband p6 (enable t) (absolute 5) (percent 10))
Values written to the point:
writept p6 100 # initial value writept p6 101 # within deadband sleep 1 writept p6 99 # within deadband writept p6 102 # value prior to exceeding deadband writept p6 120 # value exceeds percent deadband writept p6 121 # within deadband writept p6 119 # within deadband writept p6 122 # within deadband sleep 1 writept p6 119 # value prior to exceeding deadband writept p6 1000 # value exceeds percent deadband
Values recorded for (prior t):
(998917943.449015 100.000000) (998917943.466446 102.000000) (998917944.503114 120.000000) (998917944.526436 119.000000) (998917945.543039 1000.000000)
Values recorded for (prior nil):
(998917943.449015 100.000000) (998917944.503114 120.000000) (998917945.543039 1000.000000)
This example shows how if both percent and absolute deadbands are used, they must both be exceeded for a value to be recorded. Although the percent deadband is exceeded for every new value in this example, only when the absolute deadband is also exceeded is the point recorded. The deadband settings are:
(deadband p6 (enable t) (absolute 5) (percent 10))
Values written to the point:
writept p6 0 # initial value writept p6 2 # within absolute deadband writept p6 4 # value prior to exceeding deadband writept p6 6 # exceeds percent AND absolute deadband writept p6 8 # within deadband writept p6 10 # value prior to exceeding deadband writept p6 12 # exceeds percent AND absolute deadband sleep 1 writept p6 1000 # exceeds percent AND absolute deadband
Values recorded:
(998917946.583085 0.000000) (998917946.594751 4.000000) (998917946.600725 6.000000) (998917946.611944 10.000000) (998917946.617748 12.000000) (998917947.633108 1000.000000)
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.