Array records: add initialization through "const" long string link
Bug #1822028 reported by
Ralph Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
EPICS Base | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Wishlist
|
Andrew Johnson |
Bug Description
For array records (waveform & friends), initialization of array data can be done through a const link, e.g.
field(INP, { const: [65, 66, 67, 68] } )
Array records of value type CHAR should also allow initialization through a string, so that the const link shown above can be specified as
field(INP, { const: "ABCD" } )
tags: | added: codeathon |
Changed in epics-base: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
To post a comment you must log in.
woz$ cat wf.db ####### ####### ####### ####### ####### ####### ####### ####### ####### ###### ####### ####### ####### ####### ####### ####### ####### ####### ####### ######
record(waveform, wf) {
field(FTVL, CHAR)
field(NELM, 80)
field(INP, {const: "ABCD"})
}
woz$ softIoc -d wf.db
Starting iocInit
#######
## EPICS R7.0.5
## Rev. R7.0.5
#######
iocRun: All initialization complete
epics> dbgf wf
DBF_CHAR[5]: "ABCD"