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  <20192020  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  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Re: Reset counter
From: "Steven M. Hartman via Tech-talk" <[email protected]>
To: Mark Rivers <[email protected]>, enum riz <[email protected]>
Cc: tech-talk <[email protected]>
Date: Tue, 12 Nov 2019 09:30:26 -0500

> On Nov 12, 2019, at 8:43 AM, Mark Rivers via Tech-talk <[email protected]> wrote:
> 
> If you just want to turn an LED on for 2 seconds and then turn it off I don't see why you need a counter that is updating an integer count at all.  For example the "seq" record in EPICS base can set an output record to 1 (turning on the LED), wait for 2 seconds, and then turn it off.  Each time you process that record it will do that.

Even simpler, a single BO record with the HIGH field set to 2 . . .

record(bo,"outRecord"){
	field(SCAN,"Passive")
	field(HIGH,"2")
	field(ZNAM,"Off")
	field(ONAM,"On")
}


Write 1 to the record, after 2 seconds it will reset itself to 0.

-- 
Steven Hartman
[email protected]




References:
Reset counter enum riz via Tech-talk
Re: Reset counter Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Reset counter Mark Rivers via Tech-talk
Next: EPICS Codeathon 2020 Johnson, Andrew N. 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Reset counter Mark Rivers via Tech-talk
Next: Redundancy CCExecInit command problem Tasaddaq Khan 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  <20192020  2021  2022  2023  2024 
ANJ, 13 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·