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
|
![](pngV_mylIZMRN.png)
|
|
|