INP link reading from array (size 1) yields 0
Bug #1577108 reported by
Ralph Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Medium
|
mdavidsaver |
Bug Description
From Jueri Tagger <jtagger _AT_ bnl.gov>:
I tested 3.15.4-pre1 for the issue with waveforms having length 1.
The behavior is still the same: Consider 3 records below:
record(ai, "$(user):AI") {
field(VAL, "1")
field(PINI, "YES")
field(FLNK, "$(user):WF1")
}
record(waveform, "$(user):WF1") {
field(FTVL, "DOUBLE")
field(NELM, "1")
field(INP, "$(user):AI")
field(FLNK, "$(user):calcout")
}
record(calcout, "$(user):calcout") {
field(CALC, "A")
field(INPA, "$(user):WF1")
}
With base 3.14 the 3rd record, calcout, gets VAL=1 whereas with 3.15 the calcout VAL remains 0.
Do you have a good explanation?
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Verified using a minimal db on a softIoc:
record(waveform, "wf") {
field(FTVL, "DOUBLE")
field(NELM, "1")
field(FLNK, "co")
}
record(calcout, "co") {
field(CALC, "A")
field(INPA, "wf")
}
While 3.14 always fetches correctly the waveform's element, 3.15 consistently fetches 0.