(describe history)
The history information, formatted as described below, otherwise
(error "History history does not exist")
This command returns a summary of the configuration parameters associated with the specified history.
The format of the return is:
(describe "histname" "directory" "basename" "extension" ndigits "full_filename" flags deadband maxvalues point)
Any undefined string values are returned as "", not the string "nil". The following values apply specifically:
The flags are given in hexadecimal format (ie. 0x0064). The following constants define the individual flag bits and may be used to test the flags value:
| Constant | Comment |
|---|---|
| HIST_DISABLED | Indicates history logging state. |
| HIST_REGISTERED | Indicates history is registered with the Cascade DataHub for value updates. |
| HIST_DEADBAND | Overall deadband state (on/off) |
| HIST_DEADBAND_FORCE | Internal state bit. |
| HIST_DEADBAND_PRIOR | Indicates PRIOR mode is set. |
| HIST_DEADBAND_PERCENT | Indicates PERCENT deadband is set. |
| HIST_DEADBAND_ABSOLUTE | Indicates ABSOLUTE deadband is set. |
| HIST_DEADBAND_TIMELIMIT | Indicates TIMELIMIT deadband is set. |
| HIST_DEADBAND_COUNTLIMIT | Indicates COUNTLIMIT deadband is set. |
| HIST_DEADBAND_TYPES | Bit-OR of the deadband type flags (PERCENT, ABSOLUTE, TIMELIMIT, and COUNTLIMIT, useful for testing if any deadband type is set. |
The length of the reply (in bytes) can be up to the following sum:
strlen(histname)
+ (strlen(directory) * 2)
+ (strlen(basename) * 2)
+ (strlen(extension) * 2)
+ (strlen(full_filename) * 2)
+ (strlen(point) * 2)
+ 64This command corresponds to the Cogent C API function HI_Describe and the hist_describe dynamic library function.
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.