]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
added stats.db into startup of IOCs to allow view from Detector Controls
authorPeter Zumbruch <p.zumbruch@gsi.de>
Fri, 8 Nov 2013 16:27:06 +0000 (17:27 +0100)
committerPeter Zumbruch <p.zumbruch@gsi.de>
Fri, 8 Nov 2013 16:27:06 +0000 (17:27 +0100)
'cpu' gui

ebctrl/ioc/ebctrlApp/Db/Makefile
ebctrl/ioc/ebctrlApp/Db/stats.db [new file with mode: 0644]

index bcbed38d3288e0427c78a3cf00fbbcccb94cf688..a72c55997723feadd4d5ec0f85bb6a333de22a36 100644 (file)
@@ -26,6 +26,7 @@ DB += trigtype.db
 DB += cpu.db
 DB += totalevtstat.db
 DB += daqmon.db
+DB += stats.db
 
 #----------------------------------------------------
 # If <anyname>.db template is not named <anyname>*.template add
diff --git a/ebctrl/ioc/ebctrlApp/Db/stats.db b/ebctrl/ioc/ebctrlApp/Db/stats.db
new file mode 100644 (file)
index 0000000..8352b62
--- /dev/null
@@ -0,0 +1,51 @@
+record(sub, "$(PREFIX)$(IOC):asg:asinit")
+{
+       field(DESC, "security reload")
+       field(SCAN, "Passive")
+       field(INAM, "asSubInit")
+       field(SNAM, "asSubProcess")
+       field(ASG, "super")
+}
+record(calc, "$(PREFIX)$(IOC):stats:scan1")
+{
+       field(DESC, "Counter")
+       field(SCAN,"1 second")
+       field(CALC, "(A<B)?(A+C):D")
+       field(INPA, "$(PREFIX)$(IOC):stats:scan1.VAL")
+       field(INPB, "10")
+       field(INPC, "1")
+       field(INPD, "0")
+       field(EGU, "Counts")
+       field(HOPR, "10")
+       field(HIHI, "9")
+       field(HIGH, "7")
+       field(LOW, "0")
+       field(LOLO, "0")
+       field(HHSV, "MAJOR")
+       field(HSV, "MINOR")
+       field(LSV, "MINOR")
+       field(LLSV, "MAJOR")
+       field(FLNK, "$(PREFIX)$(IOC):stats:led")
+}
+
+record(calc, "$(PREFIX)$(IOC):stats:led")
+{
+       field(DESC, "LED")
+       field(CALC, "(A & 0x1)")
+       field(INPA, "$(PREFIX)$(IOC):stats:scan1.VAL")
+}
+record(stringin, "$(PREFIX)$(IOC):stats:time")
+{
+    field(DESC, "Current time and date")
+    field(DTYP, "Soft Timestamp")
+    field(INP, "@%Y-%m-%d %H:%M:%S.%03f %Z")
+       field(SCAN,"1 second")
+}
+record(stringin, "$(PREFIX)$(IOC):stats:btime")
+{
+    field(DESC, "Last IOC boot time and date")
+    field(DTYP, "Soft Timestamp")
+    field(INP, "@%Y-%m-%d %H:%M:%S.%03f %Z")
+       field(SCAN,"Passive")
+       field(PINI, "YES")
+}