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> | 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> |
<== Date ==> | <== Thread ==> |
---|
Subject: | EPICS DB Record does not update with periodic SCAN |
From: | Adrian Martinez via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Gotz, Malte via Tech-talk" <tech-talk at aps.anl.gov> |
Date: | Thu, 15 Feb 2024 12:34:45 +0000 |
Hi all,
I have a local PV declarated in my EPICS driver:
createParam(
"time_nanosec",
asynParamInt32, &idxUpdateDgnNanoSec,
EWB_SYNC_FLG_PRE);
This PV is also present in the database file:
record(ao,
"$(user):DgnNanoSecSet")
{
field(DTYP
,"asynInt32")
field(OUT
,"@asyn($(PORT),$(ADDR),$(TIMEOUT))time_nanosec")
field(DESC
,"Nanoseconds part of current time")
field(VAL,
"0")
field(EGU,
"s")
field(HOPR,
"4294967293")
field(LOPR,
"0")
}
record(ai,
"$(user):DgnNanoSecRb")
{
field(DTYP
,"asynInt32")
field(INP,
"@asyn($(PORT),$(ADDR),$(TIMEOUT))time_nanosec")
field(PREC,
"2")
field(SCAN
,".2 second")
field(EGU
, "s")
field(DESC
,"Nanoseconds part of current time")
}
My problem: This PV does not update the readback value (DgnNanoSecRb) if the SCAN field
is periodic (0.1, 0.2, 1, ... seconds) and I need that kind of SCAN (it is not valid "I/O Intr" scan for my application).
If I change the scan to "I/O
Intr" , the value of the readback is updated properly.
Does anyone know what is happening?
Thanks in advance, Adrián.
|