Another approach which would work for your calc.INPx links directly would be to add a flag to the link type telling it to set the TIME field as well as fetch the data — similar to the way implementing MS/MSI/MSS flags requires the link's getValue() method to call recGblInheritSevr() to flag link alarms. Note this still require TSEL=-2. Thusly:
Another approach which would work for your calc.INPx links directly would be to add a flag to the link type telling it to set the TIME field as well as fetch the data — similar to the way implementing MS/MSI/MSS flags requires the link's getValue() method to call recGblInheritSevr() to flag link alarms. Note this still require TSEL=-2. Thusly:
> record(calc, "xxxx") { "src:pv" ,proc:" CP",ts: true})
> field(INPA, {ca:{pv:
> ...
> field(TSEL, "-2")
> }
If the user doesn't set TSEL=-2 the timestamp will be overwritten when process() calls recGblGetTimeSt amp().