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  <20192020  2021  2022  2023  2024  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Periodic scan rate less than 20 msec
From: dmnr infn via Tech-talk <[email protected]>
To: Michael Davidsaver <[email protected]>
Cc: [email protected]
Date: Mon, 16 Dec 2019 23:32:31 +0100
Hi,
the version of EPICS Base involved is 7.0.3. 
I measured with the oscilloscope the interval between two retransmissions with the SCAN field and I saw that it is not possible to go below 20ms.
Increasing the baud rate I would like to be able to scan as much variable as possible in the shorted possible time.
I am new on EPICS, I don't know if this is the better way.
Thank you.

Il giorno lun 16 dic 2019 alle ore 18:35 Michael Davidsaver <[email protected]> ha scritto:
On 12/16/19 1:08 AM, dmnr infn via Tech-talk wrote:
> Hello everybody,
> I want to scan a variable with a polling time less than 20 msec (for example 10 msec) and I added a row inside the file menuScan.dbd but I received this error when I run my IOC:
>
> initPeriodic: Scan rate '.01 second' is not achievable.
>
> It seems that the max scan rate in my system with CentOS 7 is 20 msec. What can I do to reach a lower scan rate?

This message is in actuality a warning that a scan rate _may_ not be achievable.
It is still attempted.

https://github.com/epics-base/epics-base/blob/370b38e4c99057b579db94123071eaf69ac52445/modules/database/src/ioc/db/dbScan.c#L903-L907

A different message is seen when a scan thread actually isn't keeping up
for some reason.

https://github.com/epics-base/epics-base/blob/370b38e4c99057b579db94123071eaf69ac52445/modules/database/src/ioc/db/dbScan.c#L820-L825

The warning exists because software delays for such small intervals are not always
reliable.  Especially on a general purpose OS like Linux.

Can you talk about your motivating use case?
Also which version of EPICS Base is involved?

Replies:
Re: Periodic scan rate less than 20 msec Ralph Lange via Tech-talk
References:
Periodic scan rate less than 20 msec dmnr infn via Tech-talk
Re: Periodic scan rate less than 20 msec Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: Periodic scan rate less than 20 msec Michael Davidsaver via Tech-talk
Next: RE: ADSpinnaker timestamp Mark Rivers 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Periodic scan rate less than 20 msec Michael Davidsaver via Tech-talk
Next: Re: Periodic scan rate less than 20 msec Ralph Lange 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  <20192020  2021  2022  2023  2024 
ANJ, 18 Dec 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·