-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
69 lines (54 loc) · 2.37 KB
/
README
File metadata and controls
69 lines (54 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
This module provides source code for aSub
records that support collecting history waveforms
for specified ai PV's, along with some simple
signal analysis of waveforms to provide, MIN,
MAX, AVG, RMS, and StdDev values.
(I,Q) to polar (R,T) conversion is also supported.
Release R0.5.0, Jan 2013.
Slope and Offset added
Release R1.9.0, Oct 2013
X-AXIS waveform added
TODO: Consider merging in ANL's waveProc module
to add FFT spectrum analysis and additional
waveform signal statistics.
******************************************
How to use the history module:
Replace "sample" below w/ your app name
Add to $(TOP)/configure/RELEASE
CALC=<path to calc module release's $(TOP)
HISTORY=<path to history module release's $(TOP)
Add to $(TOP)/sampleApp/src/Makefile
SAMPLE_DBD += history
SAMPLE_DBD += calcSupport
SAMPLE_LIBS += calc
SAMPLE_LIBS += history
In your $(TOP)/sampleApp/Db directory
Create substitutions files, based on examples in history
release's db, archive, and autosave directories
# For a generic PV history with a set of history buffers
defined by the pattern file $(HISTORY)/db/ai_hist_pattern.db
See ai_hist.substitutions
You can also create a custom history pattern using
ai_hist_pattern.substiutions as an example, and
use it instead of ai_hist_pattern.db in your version
of ai_hist.substitutions.
Related files:
history.tpl-arch, archives stats for a PV's full set of history buffers
history.tpl-req, autosaves stat limits for a PV's full set of history buffers
hist_LAST_N.tpl-arch, archives stats for a PV's LAST_N history buffer
hist_LAST_N.tpl-arch, autosaves stat limits for a PV's LAST_N history buffer
# For a PV history with a bootup configurable buffer size
See ai_hist_last_x.substitutions
# For Waveform analysis, try wave_proc_hist.substitutions
For each waveform update, it uses wave_proc.template to compute:
max, min, avg, rms, stdDev, slope, and offset
keeps history of these stats with configurable intervals
Related files:
wave_proc.tpl-arch, archives stats for the waveform from wave_proc.template
wave_proc.tpl-req, autosaves stat limits for the waveform from wave_proc.template
Finally, update the build macros in $(TOP)/sampleApp/Db/Makefile,
substituting sample_hist for the substitution filenames
you create from the samples in the history module.
DB += sample_hist.db
ARCHIVE += sample_hist.arch
REQ += sample_hist.req