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  <20232024  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  <20232024  2025 
<== Date ==> <== Thread ==>

Subject: Re: record with constant input link
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 6 Nov 2023 09:23:17 +0100
On Mon, 6 Nov 2023 at 08:16, Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov> wrote:
Am Fri, 3 Nov 2023 17:05:38 +0100
schrieb Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov>:

> > > Another issue I have been running into with this is the order of
> > > record initialisation. 

> > For this (within one IOC) you can use the PHAS field of a record.
> > Records with smaller PHAS values are processed before records with
> > higher values. 

> Great, thanks for the pointer. I hadn't seen that one before.

Unfortunately, setting PHAS did not help with the issue I am trying to
resolve. Probably I did not describe the situation with enough details:

I have a mbbo record that is using streamdevice. The protocol doing the
setting part has an @init handler that should use input from a different
channel via redirection. This channel is not initialised at that point
(empty).
It looks like @init is happening too early. Even setting the redirected
record to PHAS=0 and the initialising one to PHAS=10 does not change this.
Loading the needed records with a separate dbLoadRecords statement in
st.cmd does not help, either.

PHAS is honored by the mechanisms in Base, mainly PINI processing and periodic scan threads. What device support modules do is not in the scope of Base, making

Is there a way to have selected records initialised before @init is being
run?

a tricky question, possibly StreamDevice related, at least partially.

Is the referenced record also linked to StreamDevice - that would make it a Stream-internal issue - or is that a race between record initialization by Base (PINI/PHAS) and StreamDevice (@init)?

Cheers,
~Ralph


References:
record with constant input link Gerrit Kühn via Tech-talk
Re: record with constant input link Simon Rose via Tech-talk
Re: record with constant input link Gerrit Kühn via Tech-talk
Re: record with constant input link Rolf Keitel via Tech-talk
Re: record with constant input link Gerrit Kühn via Tech-talk
Re: record with constant input link Gerrit Kühn via Tech-talk

Navigate by Date:
Prev: Re: record with constant input link Gerrit Kühn via Tech-talk
Next: Re: record with constant input link Ralph Lange 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  <20232024  2025 
Navigate by Thread:
Prev: Re: record with constant input link Gerrit Kühn via Tech-talk
Next: Re: record with constant input link Ralph Lange 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  <20232024  2025 
ANJ, 06 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·