1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 <2025> | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 <2025> |
<== Date ==> | <== Thread ==> |
---|
Subject: | Enable or select records |
From: | "Dr. Simon Friederich via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 26 May 2025 22:26:46 +0200 |
Dear EPICS community,
I have a self-build
device that consists of 11 slots.
Each slot can be populated with one of 5 different types of
modules (power, remote, reset, input and output).
The remote module of this device allows me to retrieve all
information, e.g. which kind of module was installed at which
slot position.
Example communication
for output module:
>slot 10
Answer (array with 26 floats): 1 4 1 1 1 1 1 1 1 1 1 1 1 1 10.3
21 10.4 21.2 5.3 21.4 10.5 21 10.4 20.9 10.4 20.9
So far I have a
"controller.db" managing all global device records.
I am currently working
on a "slot.db" database where I wanted to retrieve and control
all different types of modules in one file.
This would allow me to change modules (or have more devices with
different slot configuration) without changing the
dbLoadTemplate or dbLoadRecords commands.
For this I need to
select and enable certain records based on the type of module.
I have a calc record mapping numbers 0=input,1=output,2=power,3=remote 4=reset and 5=unkown to the modules (the device itself uses 1,4,252,253,254 and 255, hence the _calc_type; 4CH Unit = input):
-- Dr. Simon Friederich Institut für Kernphysik Kollaboration B | MESA Johannes Gutenberg-Universität Mainz Johann-Joachim-Becher-Weg 45 D 55128 Mainz Tel.: +49 (0)6131 39-23160 E-Mail: s.friederich at uni-mainz.de