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

Subject: Re: "duty cycle" records
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Gerrit Kühn <gerrit.kuehn at aei.mpg.de>
Cc: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 22 Nov 2023 15:07:50 +0000
You need to put PP at the end of your OUT link to force the second record to process.

Mark


Sent from my iPhone

> On Nov 22, 2023, at 8:41 AM, Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov> wrote:
> 
> Am Wed, 22 Nov 2023 11:44:03 +0100
> schrieb Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>:
> 
>> So my description was biased. Yep, that happens.
> 
> But it was perfectly reasonable, all fine. :)
> 
>> Small database is a good approach for your size of problem. On the same
>> IOC is good, as you don't have to handle disconnects.
> 
> I guess I still fail to understand how even the simple things work. I have
> made the following for testing now:
> 
> ---
> record (calcout, "$(CHAN)_DUTY_CYC") {
>  field (DESC, "duty cycled output")
>  field (VAL,  "10") # 1st cycle time
>  field (INPA, "10") # cycle time
>  field (CALC, "VAL-1")
>  field (OUT, "$(CHAN)_DUTY_TEST")
>  field (OOPT, "Transition To Zero")
>  field (SCAN, "1 second")
> }
> 
> record (ao, "$(CHAN)_DUTY_TEST") {
>  field (VAL, "11")
> }
> ---
> 
> 
> The idea was to have the first channel count down seconds from a given
> value and then write out to a diffreent channel and make that one process.
> The countdown works as expected, I can follow it with camonitor. However,
> it looks like the OOPT is never hit even though the counter goes below
> zero. The second channel never changes and stays at the default value "11",
> it looks like it is never written to. What am I doing wrong?
> 
> 
> cu
>  Gerrit

Replies:
Re: "duty cycle" records Gerrit Kühn via Tech-talk
References:
"duty cycle" records Gerrit Kühn via Tech-talk
Re: "duty cycle" records Ralph Lange via Tech-talk
Re: "duty cycle" records Gerrit Kühn via Tech-talk
Re: "duty cycle" records Ralph Lange via Tech-talk
Re: "duty cycle" records Gerrit Kühn via Tech-talk

Navigate by Date:
Prev: RE: "duty cycle" records Žiga Oven via Tech-talk
Next: Re: "duty cycle" records Gerrit Kühn 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 
Navigate by Thread:
Prev: RE: "duty cycle" records Žiga Oven via Tech-talk
Next: Re: "duty cycle" records Gerrit Kühn 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 
ANJ, 22 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·