]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DAQ_SETTINGS → PRESTO_SENSORS with 2-stage substitution
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Mon, 19 Aug 2019 13:55:58 +0000 (15:55 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Mon, 19 Aug 2019 13:55:58 +0000 (15:55 +0200)
DAQ_SETTINGS/DAQ_SETTINGSApp/Db/M26_SENSOR_SETTINGS.substitutions [new file with mode: 0644]
DAQ_SETTINGS/DAQ_SETTINGSApp/Db/M26_SENSOR_SETTINGS_ao.template [new file with mode: 0644]
DAQ_SETTINGS/DAQ_SETTINGSApp/Db/Makefile
DAQ_SETTINGS/DAQ_SETTINGSApp/Db/PRESTO_SENSORS.substitutions [new file with mode: 0644]
DAQ_SETTINGS/iocBoot/iocDAQ_SETTINGS/st.cmd

diff --git a/DAQ_SETTINGS/DAQ_SETTINGSApp/Db/M26_SENSOR_SETTINGS.substitutions b/DAQ_SETTINGS/DAQ_SETTINGSApp/Db/M26_SENSOR_SETTINGS.substitutions
new file mode 100644 (file)
index 0000000..5de89ff
--- /dev/null
@@ -0,0 +1,8 @@
+file M26_SENSOR_SETTINGS_ao.template {
+    pattern { PARAM, DESC }
+        { "IVDREF1A", "Descriminator Reference 1 Bank A VDREF1A" }
+        { "IVDREF1B", "Descriminator Reference 1 Bank B VDREF1B" }
+        { "IVDREF1C", "Descriminator Reference 1 Bank C VDREF1C" }
+        { "IVDREF1D", "Descriminator Reference 1 Bank D VDREF1D" }
+        { "IVDREF2",  "Descriminator Reference 2 VDREF2" }
+}
diff --git a/DAQ_SETTINGS/DAQ_SETTINGSApp/Db/M26_SENSOR_SETTINGS_ao.template b/DAQ_SETTINGS/DAQ_SETTINGSApp/Db/M26_SENSOR_SETTINGS_ao.template
new file mode 100644 (file)
index 0000000..95308eb
--- /dev/null
@@ -0,0 +1,4 @@
+record(ao, "$(sys):$(sub):DAQ:$(daqsys):SENSOR:$(ID):$(PARAM)") {
+  # field(DTYP, "stream")
+  field(DESC, "$(DESC)")
+}
index 8eb97279d19c56456f20368843fa70bf92ec9048..778006f196e9e611bd1222c0fc220ee75bf38e34 100644 (file)
@@ -7,6 +7,8 @@ include $(TOP)/configure/CONFIG
 # Create and install (or just install) into <top>/db
 # databases, templates, substitutions like this
 #DB += xxx.db
+DB += M26_SENSOR_SETTINGS.db
+DB += PRESTO_SENSORS.db
 
 #----------------------------------------------------
 # If <anyname>.db template is not named <anyname>*.template add
diff --git a/DAQ_SETTINGS/DAQ_SETTINGSApp/Db/PRESTO_SENSORS.substitutions b/DAQ_SETTINGS/DAQ_SETTINGSApp/Db/PRESTO_SENSORS.substitutions
new file mode 100644 (file)
index 0000000..08da082
--- /dev/null
@@ -0,0 +1,18 @@
+file M26_SENSOR_SETTINGS.db {
+    pattern { ID, NAME }
+        { "B2",  "Sensor B2"  }
+        { "C8",  "Sensor C8"  }
+        { "F8",  "Sensor F8"  }
+        { "F3",  "Sensor F3"  }
+        { "F4",  "Sensor F4"  }
+        { "F5",  "Sensor F5"  }
+        { "C12", "Sensor C12" }
+        { "D1",  "Sensor D1"  }
+        { "D2",  "Sensor D2"  }
+        { "C3",  "Sensor C3"  }
+        { "G8",  "Sensor G8"  }
+        { "G5",  "Sensor G5"  }
+        { "C10", "Sensor C10" }
+        { "C6",  "Sensor C6"  }
+        { "C4",  "Sensor C4"  }
+}
index a071f08e10a363dbf60f87084f2c4a4703e9bb61..021368d281907aa5d6fbe543c9480c04b54958fb 100755 (executable)
@@ -12,7 +12,7 @@ dbLoadDatabase "dbd/DAQ_SETTINGS.dbd"
 DAQ_SETTINGS_registerRecordDeviceDriver pdbbase
 
 ## Load record instances
-#dbLoadRecords("db/xxx.db","user=pklaus")
+dbLoadRecords("db/PRESTO_SENSORS.db","sys=CBM,sub=MVD,daqsys=PRESTO")
 
 cd "${TOP}/iocBoot/${IOC}"
 iocInit