Hi Amien,
On 03/16/2018 09:19 AM, Amien Crombie wrote:
I have a subarray record that looks like this:
record(subArray, "$(dev):$(channame)") {
field(SCAN, ".1 second")
field(FTVL, "FLOAT")
field(DTYP, "Soft Channel")
field(INP, "$(dev):xcur") ## INP comes from a waveform of 8 floats
field(NELM, "1")
field(MALM, "8")
field(INDX, "$(chan)") ## chan macro starts at 0
field(FLNK, "$(dev):mychan$(INDX)")
What are you trying to achieve with the above FLNK value? Did you mean
to use $(chan) instead of $(INDX)? Do you have 8 copies of this record,
one each for chan=1, chan=2 etc?
}
record(ai, "$(dev):mychann$(chan)") {
field(DTYP, "Soft Channel")
}
This is possibly not the right way to do it. Is there a better way?
I suspect you may be trying to extract each of the individual values
from the waveform into their own ai record, is that correct?
Which version of EPICS Base are you using? There is an easier way than
creating 8 subArray records if you are using a 3.15 or later release of
Base.
- Andrew