EPICS Home

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: "Hartman, Steven M." <[email protected]>
To: Simon Reiter <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Wed, 7 Feb 2018 23:00:37 +0000
> On Feb 7, 2018, at 5:31 PM, Simon Reiter <[email protected]> wrote:
> 
>>  state check {
>>    when(pv_mem < 2) {
>>    } state check_valid
>>    when(pv_rate != 0) {
>>    } state check
>>    when(pv_rate == 0 && delay(Waittime)) {
>>    } state check_failed
>>  }

I would avoid the 

   when(pv_rate != 0) {
   } state check

in the check state as that will just loop, burning CPU. Try something like this . . .


 state check {
   when(pv_mem < 2) {
   } state check_valid
   when(pv_rate == 0 {
   } state check_delay
 }
 state check_delay {
   when(pv_rate != 0) {
   } state check
   when (pv_rate == 0 && delay(Waittime)) {
   } state check_failed
 }

-- 
Steven Hartman
[email protected]






Replies:
Re: Sequencer seem to skip states with EPICS 3.16.1 Benjamin Franksen
References:
Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Ralph Lange
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Ralph Lange
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Benjamin Franksen
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Benjamin Franksen
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Andrew Johnson
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Andrew Johnson
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter

Navigate by Date:
Prev: Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Next: mca compilation fails on windows 7, keyword re-definition Gofron, Kazimierz
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: Re: Sequencer seem to skip states with EPICS 3.16.1 Simon Reiter
Next: Re: Sequencer seem to skip states with EPICS 3.16.1 Benjamin Franksen
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