Array records: add initialization through "const" long string link

Bug #1822028 reported by Ralph Lange
6
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: codeathon
Andrew Johnson (anj)
tags: added: codeathon
Changed in epics-base:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Andrew Johnson (anj) wrote :

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"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.