> 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
<2019>
2020
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
<2019>
2020
2021
2022
2023
2024
|