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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: More precise timing for record processing |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Sobhani, Alex" <sobhaniba at ornl.gov> |
Date: | Tue, 30 May 2023 12:12:01 +0000 |
Hi Alex,
I think you could do it with a seq record something like this:
record(seq,"BL0:mytimer")
{
field(DLY1,"2.7")
field(DOL1,"1")
field(LNK1,"BL0:mytrigger.PROC")
field(FLNK,"BL0:mytimer")
}
I have not tested it.
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Sobhani, Alex via Tech-talk <tech-talk at aps.anl.gov>
Sent: Sunday, May 28, 2023 8:35 PM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: More precise timing for record processing The SCAN field lets you choose from .1, .2, .5, 1, 2, 5, or 10 seconds. In cases where this is not enough, is there a simple way to make a record process at other intervals such as 2.7 seconds or 5.4 seconds, specified at runtime? I know you can add options for more periods of the SCAN field by editing dbd files, but you cannot change your mind at runtime.
I envision something like this:
record(timer, “BL0:mytimer”){ field(PERI, 2.7) field(FLNK, “BL0:mytrigger”) }
And then subfields to enable/disable it.
Does anything like this exist? I would imagine that something like this would be very generally useful.
Alex |