Thanks for the suggestion, Pedro!
At the end of the day, i figured that maybe autosave fdbrestore function would do what i wanted. Unfortunately, the function was resulting in segmentation fault. Looking in tech-talk i found this thread:
https://epics.anl.gov/tech-talk/2014/msg01851.php which
suggested that for autosave versions before 5.4.1 it is a known bug which is fixed after that. Since im using autosave 5-10-2 and the PVs are not very long, i gave up using autosave for this.
I am indeed doing something similar to what you suggested: i created a file full of dbpf's and im trying to use the "execute" function of streamDevice to do a protocol file with:
call_file {
execute "< file_with_dbpfs.cmd";
}
And a PV in the form:
record(stringout, "$(P)$(R)UpdateConfig"){
field(DESC, "Filename from which to get values.")
field(OUT, "@iocsh_functions.proto call_file")
}
Untill now i had no success but it seems to be some silly mistake that i still didnt have time to debug.
Thanks,
Marco