Experimental Physics and
| |||||||||||||||
|
Hello everyone,
I have a quick question, I was trying to get subArray to read the second (or any other than the first) element from a waveform record, like this: cat << EOF > test.db record(waveform, "wave") { field(INP, "[1, 2, 3, 4, 5]") field(NELM, "5") field(FTVL, "DOUBLE") field(PINI, "YES") field(FLNK, "subarr") } record(subArray, "subarr") { field(INP, "wave") field(INDX, "1") field(MALM, "1") field(NELM, "1") field(FTVL, "DOUBLE") } EOF softIoc -d test.db But it doesn't work as subarr INDX >= MALM (https://github.com/epics-base/epics-base/blob/R7.0.4/modules/database/src/std/rec/subArrayRecord.c#L308), and it always return the first element of the waveform. Is that the expected behavior? This seems odd to me as INDX refers to an index of the waveform record and MALM refers to the maximum number of elements of the subarray record. But I might be missing something. Using EPICS 7.0.4.1 Thanks! Lucas
| ||||||||||||||
ANJ, 01 Sep 2021 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |