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: Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov>
To: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 22 Nov 2023 15:33:15 +0100
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Replies:
RE: "duty cycle" records Žiga Oven via Tech-talk
Re: "duty cycle" records Mark Rivers 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

Navigate by Date:
Prev: Re: "duty cycle" records Ralph Lange via Tech-talk
Next: RE: "duty cycle" records Žiga Oven 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 Ralph Lange via Tech-talk
Next: RE: "duty cycle" records Žiga Oven 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 ·