Code review comment for lp:~epics-core/epics-base/link-support-2

Revision history for this message
Andrew Johnson (anj) wrote :

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") {
> field(INPA, {ca:{pv:"src:pv",proc:"CP",ts:true})
> ...
> field(TSEL, "-2")
> }

If the user doesn't set TSEL=-2 the timestamp will be overwritten when process() calls recGblGetTimeStamp().

« Back to merge proposal