From: Philipp Klaus Date: Tue, 1 Aug 2017 13:16:01 +0000 (+0200) Subject: BALZERS: channel as parameter in ADCuC .proto X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=da330eb76f0a05a2d8aae2522da3e5b131ec501c;p=mvd_epics.git BALZERS: channel as parameter in ADCuC .proto --- diff --git a/BALZERS_PKG020/BALZERS_PKG020App/Db/BALZERS_PKG020_CHANNEL.template b/BALZERS_PKG020/BALZERS_PKG020App/Db/BALZERS_PKG020_CHANNEL.template index 0cffa83..3cf8dcb 100644 --- a/BALZERS_PKG020/BALZERS_PKG020App/Db/BALZERS_PKG020_CHANNEL.template +++ b/BALZERS_PKG020/BALZERS_PKG020App/Db/BALZERS_PKG020_CHANNEL.template @@ -1,22 +1,9 @@ record (ai, "$(sys):$(sub):VACUUM:$(vsys):$(SIDE):$(GAUGE):Voltage") { field (DTYP, "stream") - field (INP, "@BALZERS_PKG020.proto getVoltage$(CHAN) $(PORT)") + field (INP, "@BALZERS_PKG020.proto getVoltage($(CHAN)) $(PORT)") field (SCAN, "2 second") field (EGU, "V") field (PREC, "4") field (ADEL, "0.005") field (MDEL, "0.001") } - -#record (ai, "$(sys):$(sub):VACUUM:$(vsys):$(SIDE):$(GAUGE):Pressure") { -# field (DTYP, "stream") -# field (INP, "@BALZERS_PKG020.proto getVoltage$(CHAN) $(PORT)") -# field (SCAN, "2 second") -# field (EGU, "mbar") -# field (PREC, "4") -# field (ADEL, "0.005") -# field (MDEL, "0.001") -#} - - - diff --git a/BALZERS_PKG020/protocols/BALZERS_PKG020.proto b/BALZERS_PKG020/protocols/BALZERS_PKG020.proto index 9ba7a51..8840c5f 100644 --- a/BALZERS_PKG020/protocols/BALZERS_PKG020.proto +++ b/BALZERS_PKG020/protocols/BALZERS_PKG020.proto @@ -24,19 +24,7 @@ ExtraInput = Ignore; ##################### -getVoltage1 { - out "V 1?"; - in "V 1 %f"; -} -getVoltage2 { - out "V 2?"; - in "V 2 %f"; -} -getVoltage3 { - out "V 3?"; - in "V 3 %f"; -} -getVoltage4 { - out "V 4?"; - in "V 4 %f"; +getVoltage { + out "V \$1?"; + in "V \$1 %f"; }