EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Is there any chance that I can change SCAN parameter dynamically?
From: Luedeke Andreas <[email protected]>
To: Zhichu Chen <[email protected]>
Cc: [email protected]
Date: Wed, 31 Oct 2007 16:01:15 +0100
Zhichu Chen wrote:
[...] So it will take 40*timescale to get all I want [...]

I know I can set SCAN to a very big number but, when the time scale is small, I think it's not efficient then. I'm just wondering whether I could use another record to control it, or something alternative.
[...]
Hi Chen,
the choices of SCAN are rather limited.
In your case I would suggest that your calculate the desired readout period from the timescale and use a counter to process your readout. E.g.:


   record(calcout,"la:s") {
       field(SCAN,"1 second")
       field(INPA,"la:s.VAL")
       field(INPB,"la:t.VAL")
       field(CALC,"A+1>=B?0:A+1")
       field(OOPT,"When Zero")
       field(OUT,"la:cnt.PROC")
   }
   record(longin,"la:t") {
       field(INP,"1")
       field(EGU,"s")
   }
   record(calc,"la:cnt") {
       field(INPA,"la:cnt")
       field(CALC,"A+1")
   }

Here the record la:cnt is processed every "la:t" seconds (for "la:t">0).

Cheers
Andreas

Replies:
Re: Is there any chance that I can change SCAN parameter dynamically? Zhichu Chen
References:
Is there any chance that I can change SCAN parameter dynamically? Zhichu Chen

Navigate by Date:
Prev: Re: Is there any chance that I can change SCAN parameter dynamically? Ned Arnold
Next: Re: Is there any chance that I can change SCAN parameter dynamically? Zhichu Chen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: VMIC 2534 3.14 support? Steven Hartman
Next: Re: Is there any chance that I can change SCAN parameter dynamically? Zhichu Chen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·