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  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Sequencer seem to skip states with EPICS 3.16.1
From: Ralph Lange <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Tue, 30 Jan 2018 21:00:25 +0100
On Tue, Jan 30, 2018 at 5:25 PM, Simon Reiter <[email protected]> wrote:
Hi all,

I ran into another problem.
Using the sequencer (2.2.4) for a state machine was working well. With the upgrade to EPICS 3.16.1,
some states seem to be skipped. Normally, it would go like READY -> STARTING -> RUNNING.
I added log messages to verify these states. This is fine.

But using camonitor only show READY -> RUNNING.
The same happens for external software, which uses a channel subscription.
This problem also happens in EPICS7.

Any idea, how I can solve this without implementing some delay workaround.

What record type do you use to represent your state?

In the CA server, updates for strings are handled using a reference (pointer) in the queue, while numerical type updates put their value in the queue.
If your record has a string value, two fast subsequent writes to it may actually lead to the first string never being sent, if it gets overwritten while the event with the pointer to it is still in the outgoing queue. In that case, it might be better to use an mbbi or mbbo (enum type) record, because an enum's natural type is numerical, while it still has nice string representations for its states.

Cheers,
~Ralph


References:
Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter

Navigate by Date:
Prev: Re: Scanning on event number fails with EPICS 3.16 Simon Reiter
Next: Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Next: Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 30 Jan 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·