EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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: Re: Enable or select records
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: "Dr. Simon Friederich" <s.friederich at uni-mainz.de>
Date: Tue, 27 May 2025 09:24:38 +0200
Hi Simon,

Without going into the specifics of your application...

Device type mapping:
No need for the calc - the mbbi can do the mapping itself. Use the "Raw Soft Channel" device support (in Base) to have the mbbi do RVAL-to-index mapping.

Disabling:
There are several ways, of course ... I would indeed use disabling.
Add one "Disable<type>" bo record to each per-device-type database, with a default setting of 1=disabled. Point all hardware-connected records of that device type to this Disable<type> using SDIS="Disable<type> CA". (CA option to avoid pulling all records into the same lock set.)

The missing link:
Connecting its SELL to your mapping mbbi, use e.g. a dfanout record with SELM=specified to write a 0 (=enabled) to the Disabled<type> record of the recognized card type. (Don't forget the PP flag to process the Disabled<type>.)

The whole thing is a template per slot that you instantiate for each slot that is used. (Or the max number of slots if you don't care about unconnected records.)

Cheers,
~Ralph

ps. Database links work only locally, Channel Access links work locally and remotely.
CP on input links means "set up a monitor and process me when the value changes" - which is perfectly legal in any case.


Replies:
Re: Enable or select records Dr. Simon Friederich via Tech-talk
References:
Enable or select records Dr. Simon Friederich via Tech-talk

Navigate by Date:
Prev: Fwd: Use mysy2 install eEPICSbase on windows 10 failed ewen wang via Tech-talk
Next: oac-tree release v1.0 available Van Herck Walter via Tech-talk
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
Navigate by Thread:
Prev: Enable or select records Dr. Simon Friederich via Tech-talk
Next: Re: Enable or select records Dr. Simon Friederich via Tech-talk
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
ANJ, 02 Jun 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·