From 5dcd08423a82a494526cb98a65767a499e7627a9 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Wed, 18 Dec 2024 16:27:55 +0000 Subject: [PATCH] add stream-protocol to stream devices --- digitelMpc/digitelMpc.ibek.support.yaml | 10 ++++++++++ mks937a/mks937a.ibek.support.yaml | 4 ++++ mks937b/mks937b.ibek.support.yaml | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/digitelMpc/digitelMpc.ibek.support.yaml b/digitelMpc/digitelMpc.ibek.support.yaml index 4e1faad..0651ac7 100644 --- a/digitelMpc/digitelMpc.ibek.support.yaml +++ b/digitelMpc/digitelMpc.ibek.support.yaml @@ -220,6 +220,10 @@ entity_models: Template argument default: $(device) + pre_init: + - value: | + epicsEnvSet "STREAM_PROTOCOL_PATH", "$(DIGITELMPC)/digitelMpcApp/protocol/" + databases: - file: $(DIGITELMPC)/db/digitelMpcIonp.template args: { device: null, port: "{{MPC.port}}", unit: "{{MPC.unit}}", pump: null, size: null, sp1on: null, sp1off: null, sp2on: null, sp2off: null, alh: null, text: null, proto: null, disptext: null } @@ -409,6 +413,12 @@ entity_models: duration- On duration (s) - new addition May 2010 for dual TSP systems on MPCe - defaults to 10 default: 20 + pre_init: + + - value: | + epicsEnvSet "STREAM_PROTOCOL_PATH", "$(STREAM_PROTOCOL_PATH):$(DIGITELMPC)/digitelMpcApp/protocol/" + when: Once + databases: - file: $(DIGITELMPC)/db/digitelMpcTsp.template args: { device: null, port: null, unit: null, ctlsrc: null, protocol: null, totmax: null, tcmax: null } diff --git a/mks937a/mks937a.ibek.support.yaml b/mks937a/mks937a.ibek.support.yaml index e3f7c7f..bb7b2f6 100644 --- a/mks937a/mks937a.ibek.support.yaml +++ b/mks937a/mks937a.ibek.support.yaml @@ -487,6 +487,10 @@ entity_models: device: "{{eguInputPV}}" p_egu_pv: "{{input}}" + pre_init: + - value: | + epicsEnvSet "STREAM_PROTOCOL_PATH", "$(MKS937A)/mks937aApp/protocol/" + - name: mks937aGaugeGroup description: |- Template database for a group of up to 8 MKS937A diff --git a/mks937b/mks937b.ibek.support.yaml b/mks937b/mks937b.ibek.support.yaml index eeaa046..c20df36 100644 --- a/mks937b/mks937b.ibek.support.yaml +++ b/mks937b/mks937b.ibek.support.yaml @@ -315,6 +315,10 @@ entity_models: description: |- Controller address (001 .. 253) + pre_init: + - value: | + epicsEnvSet "STREAM_PROTOCOL_PATH", "$(MKS937B)/mks937bApp/protocol/" + databases: - file: $(MKS937B)/db/mks937b.template args: