Hi Emmanuel,
On 2013-04-22 Emmanuel Mayssat wrote:
> Just out of curiosity, how does epics knows that "60 seconds" is actually
> 60 * 1 second. In other words, what if I write in my dbd file
> choice(menuScan60_second,"1 minute")
> or
> choice(menuScan1_minute,"1 minute")
> Why are those entries different from
> choice(menuScan60_second,"60 second")
Eric's answer was correct for EPICS versions up to 3.14. With 3.15 though you
can write any of these and it'll understand you, because the code that parses
the periodic choice strings looks at the units as well as the number:
choice(menuScan1_hour, "1 hour")
choice(menuScan0_5_hours, "0.5 hours")
choice(menuScan15_minutes, "15 minutes")
choice(menuScan1_minute, "1 minute")
choice(menuScan5_seconds, "5 seconds")
choice(menuScan2_seconds, "2") # seconds if no units given
choice(menuScan1_second, "1 second")
choice(menuScan2_Hertz, "2 Hertz")
choice(menuScan10_Hertz, "10 Hz")
English only though I'm afraid, and adding units involves editing the code so
I don't recommend that. You will get a warning if the scan delay is too small
for the OS.
- Andrew
--
It is difficult to get a man to understand something, when his salary
depends upon his not understanding it. -- Upton Sinclair
- References:
- Add choice to dbd file Bruno Santos
- Re: Add choice to dbd file Andrew Johnson
- RE: Add choice to dbd file Emmanuel Mayssat
- Navigate by Date:
- Prev:
RE: caget delays Mark Rivers
- Next:
Re: Calling ca_context_create(1) too late Andrew Johnson
- 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
2023
2024
- Navigate by Thread:
- Prev:
Re: Add choice to dbd file Eric Norum
- Next:
FW: Gige performance increasing. Mark Rivers
- 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
2023
2024
|