Experimental Physics and
Is there a way to duplicate values within the .db files of an epics IOC? I mean I want the same channel to apply to two different varaibles so that other applications that use different PV names to refer to the same thing can each use it. For example, I have a temperature monitor variable, TEMPF that has a value of, say, 75 (the actual value is received from the device that IOC handles). I want this value to apply both to the variable TEMPF and a variable TemperatureF. TEMPF will get the value and be the main variable as far as the IOC is concerned, and TemperatureF will get its value from TEMPF and act as its own channel, so I can caget either TEMPF or TemperatureF and see the same value.
However, when I simply try to include a record identical to TEMPF in the db file, save that it is named TemperatureF, this does not work. I have tried playing with FLNK as well, but I am unsure how to use it correctly for this purpose.
Here is TEMPF:
field(DESC, "Channel 4: Temperature in F")
I tried adding field(FLNK,"TemperatureF") below the HSV field, then added another record:
record(ai,"TEMPF"), but I'm not sure what fields, if any, I should include in that so it is a clone of TEMPF.
|ANJ, 20 Apr 2015||
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·