getProperties() nested the display.precision assignment inside the DBR_GR_DOUBLE branch, so a field whose rset supplies get_precision but NULLs get_graphic_double never had its precision served over PVA -- even though DBR_PRECISION and DBR_GR_DOUBLE are independent rset slots (and CA serves the precision fine). display.units, one block above, is already gated on its own DBR_UNITS slot; precision was the odd one out. In EPICS base bo, mbbiDirect and mbboDirect are exactly the record types whose rset supplies get_precision while NULLing get_graphic_double; several modules (busy, asyn, transform, sseq) do the same. For all of them the precision leaf was silently dropped. Gate display.precision on its own DBR_PRECISION slot, as a sibling of the graphic-limits branch rather than nested inside it. Adds a testqsingle case: test:precprop.HIGH (bo.HIGH reports boHIGHprecision) now carries display.precision in its delta while display.limitLow/limitHigh stay absent. The case fails without this fix.
71 lines
1.5 KiB
Plaintext
71 lines
1.5 KiB
Plaintext
record(ai, "test:ai") {
|
|
field(DESC, "Analog input")
|
|
field(EGU , "arb")
|
|
field(PREC, "1")
|
|
field(HHSV, "INVALID")
|
|
field(HSV, "MAJOR")
|
|
field(HIHI, "100")
|
|
field(HIGH, "6")
|
|
field(LOW, "4")
|
|
field(LOLO, "0")
|
|
field(LSV, "MINOR")
|
|
field(LLSV, "MAJOR")
|
|
field(HOPR, "100")
|
|
field(LOPR, "0")
|
|
field(VAL, "42.2")
|
|
field(RVAL, "123")
|
|
info(Q:form, "Engineering")
|
|
}
|
|
record(ai, "test:ai2") {
|
|
field(INP , "test:ai NPP")
|
|
}
|
|
record(ai, "test:this:is:a:really:really:long:record:name") {}
|
|
record(ai, "test:src") {
|
|
field(INP , "test:this:is:a:really:really:long:record:name NPP")
|
|
}
|
|
record(waveform, "test:long:str:wf") {
|
|
field(FTVL, "CHAR")
|
|
field(NELM, "128")
|
|
info(Q:form, "String")
|
|
}
|
|
record(bo, "test:bo") {
|
|
field(ZNAM, "Zero")
|
|
field(ONAM, "One")
|
|
}
|
|
record(bo, "test:log") {
|
|
field(ZNAM, "Something")
|
|
field(ONAM, "Else")
|
|
}
|
|
record(waveform, "test:wf:f64") {
|
|
field(FTVL, "DOUBLE")
|
|
field(NELM, "10")
|
|
}
|
|
record(waveform, "test:wf:i32") {
|
|
field(FTVL, "LONG")
|
|
field(NELM, "10")
|
|
}
|
|
record(waveform, "test:wf:s") {
|
|
field(FTVL, "STRING")
|
|
field(NELM, "10")
|
|
}
|
|
record(calc, "test:counter") {
|
|
field(CALC, "VAL+1")
|
|
}
|
|
record(calcout, "test:slowmo") {
|
|
field(ODLY, "1")
|
|
field(CALC, "VAL+1")
|
|
}
|
|
record(longout, "test:ro") {
|
|
field(ASG, "RO")
|
|
}
|
|
record(longout, "test:disp") {
|
|
field(DISP, "1")
|
|
}
|
|
record(longin, "test:nsec") {
|
|
field(VAL , "100")
|
|
info(Q:time:tag, "nsec:lsb:8")
|
|
}
|
|
record(bo, "test:precprop") {
|
|
field(HIGH, "5")
|
|
}
|