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: Rolf Keitel via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Wed, 22 Nov 2023 11:06:46 -0800
Title: signature text

Hi Gerrit,

You cannot point a link field at another link field.

If you set in the second record

field (INPA, "$(CHAN)_DUTY_CYC.A")

you should get what you want. - rolf -

On 2023-11-22 8:07 a.m., Gerrit Kühn via Tech-talk wrote:
Am Wed, 22 Nov 2023 16:23:29 +0100
schrieb Gerrit Kühn via Tech-talk <tech-talk at aps.anl.gov>:

You need to put PP at the end of your OUT link to force the second
record to process.  

Yes, that was the mssing bit. Thanks to both of you for pointing this out
to me.
Last question for today (hopefully). I have these records 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_RESET PP")
  field (OOPT, "Transition To Zero")
  field (SCAN, "1 second")
}

record (calcout, "$(CHAN)_DUTY_RESET") {
  field (DESC, "reset cycle counter")
  field (VAL, "11")
  field (INPA, "$(CHAN)_DUTY_CYC.INPA")
  field (CALC, "A")
  field (OUT, "$(CHAN)_DUTY_CYC")
  field (SCAN, "Passive")
}
---

The second record gets processed when the counter in the first record
reaches zero. However, it only resets the counter as desired when the INPA
field in the second record is defined constant (i.e., INPA, "10" directly
in the second record).
My original idea as written above was to get the INPA field of the second
record from the INPA field of the first record. However, this does not
work. camonitor reports this as "LINK INVALID" although I can use caget on
the reported link just fine (and get the correct value). Again, this feels
like I'm missing a simple thing...


cu
  Gerrit
--
Rolf Keitel, Ph.D.
Researcher Emeritus
e-mail: rolf at triumf.ca
------ Home ------
4158 West 13th Ave
Vancouver, BC, V6R 2T6
604 228 0594
------ Office: ------
604 222 7453
TRIUMF Canada’s particle accelerator centre
4004 Wesbrook Mall Vancouver, BC, V6T 2A3
www.triumf.ca | Twitter | Facebook | Instagram

TRIUMF is located on the traditional, ancestral, and unceded territory of the xʷməθkʷəy̓əm (Musqueam) people,
who for millennia have passed on their culture, history, and traditions from one generation to the next on this site.

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
Re: "duty cycle" records Mark Rivers via Tech-talk
Re: "duty cycle" records Gerrit Kühn via Tech-talk
Re: "duty cycle" records Gerrit Kühn via Tech-talk

Navigate by Date:
Prev: Re: "duty cycle" records Gerrit Kühn 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 Gerrit Kühn 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, 23 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·