kstmApp/Db/maxigauge.template
changeset 4 68a4f654dc00
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/kstmApp/Db/maxigauge.template	Thu Jul 05 08:48:18 2018 +0000
@@ -0,0 +1,22 @@
+record(stringin, "$(P):$(R):getter"){
+	field(DESC, "get Pfeiffer MaxiGauge Sensor Value")
+	field(DTYP, "stream")
+	field(INP, "@maxigauge.proto getSensorValue($(CHA)) $(PORT)")
+	field(SCAN, "1 second")
+	field(FLNK, "$(P):$(R):Status")
+}
+
+record(scalcout, "$(P):$(R):Status"){
+	field(DESC, "extracts the Status from the response")
+	field(INAA, "$(P):$(R):getter")
+	field(CALC, "SSCANF(AA, \"%d%*\")")
+	field(FLNK, "$(P):$(R):Pressure")
+}
+
+record(scalcout, "$(P):$(R):Pressure"){
+	field(DESC, "extracts the Pressure from the response")
+	field(INAA, "$(P):$(R):getter")
+        field(CALC, "SSCANF(AA, \"%*2c%E\")")
+	field(PREC, "12")
+        field(EGU, "mbar")
+}