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  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.


Adrián MARTÍNEZ MÚNERA

Embedded Software Engineer | HEP Department | Orolia

P +34 958 28 50 24

SAFRAN Electronics & Defense Spain S.L.


Edf. CETIC, Calle Periodista Rafael Gómez Montero, 2, oficina 5, 18014 Granada


www.safran-navigation-timing.com 


image002.png

image003.gif

image004.gif

image005.gif


Navigate by Date:
Prev: Re: ADPICam: epicsMutexOsdUnlock failed: ERROR Operation not permitted Jörn Dreyer via Tech-talk
Next: AW: motor model 3 with binary commands PiCo 33 piezo CN30 controller Sintschuk, Michael 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  2019  2020  2021  2022  2023  <2024
Navigate by Thread:
Prev: Re: ADPICam: epicsMutexOsdUnlock failed: ERROR Operation not permitted Jörn Dreyer via Tech-talk
Next: React-Automation-Studio V5.0.0 Duckitt, WD, Dr [wdduckitt--- 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  2019  2020  2021  2022  2023  <2024
ANJ, 16 Feb 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·