initialize VAL of an mbbi/o record with a string
Bug #541396 reported by
Ben Franksen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Triaged
|
Wishlist
|
Andrew Johnson |
Bug Description
With the following record in a db file
record(
field(VAL,"Zero")
field(ZRST,"Zero")
field(ONST,"One")
}
I get
dbLoadRecords(
Error Last token ")"
input line: field(VAL,"Zero")
in: path "." file test.db line 2
I think it would be nice to be able to initialize an mbbo or mbbi record with one of the configured string values.
Original Mantis Bug: mantis-373
http://
Changed in epics-base: | |
status: | Won't Fix → Confirmed |
To post a comment you must log in.
I don't think this is likely to be possible anytime soon; only the record type code knows which fields make up the possible menu choices, and the record types don't get initialized until iocInit(), which currently can only happen after all the .db files have been loaded.
If we ever implement the ability to create new record instances while running it might be possible to use dbLoadRecords() after iocInit() in which case the desired behavior should be possible (as long as the VAL field is defined after the relevant ??ST field has been set). However I suspect there would be a significant loss of performance doing this; the current parser was written assuming the database is inactive when it runs, so it doesn't bother with things like record locking, recalculating lock-sets or adding records to the periodic scan lists.