Open prjemian opened 7 months ago
Looking at the common.iocsh script, these lines purport to create 20 instances of calc (swait, calcout, transform, ...) records: https://github.com/epics-modules/xxx/blob/5503ab0734ebaa21826888fec2821ceb05a8e928/iocBoot/iocxxx/common.iocsh#L32-L36
common.iocsh
In fact, the first line creates instances 1..10 and the second creates instances 10..19. The problem is created by a simplification in the userCalc_extra.iocsh file on lines such as:
userCalc_extra.iocsh
dbLoadRecords("$(CALC)/db/userCalcs10more.db","P=$(PREFIX),N10=$(N)0,N1=$(N)1,N2=$(N)2,N3=$(N)3,N4=$(N)4,N5=$(N)5,N6=$(N)6,N7=$(N)7,N8=$(N)8,N9=$(N)9")
that create 10 instances that start with a common number. Instance for userCalc20 cannot be created from such a file without create the remaining 21..29 instances. The GUI screen files call for instances of that 20th PV: https://github.com/epics-modules/xxx/blob/master/xxxApp/op/adl/ioc_tools.adl#L275-L309
userCalc20
21..29
20
Here's an example (from phoebus):
Looking at the
common.iocsh
script, these lines purport to create 20 instances of calc (swait, calcout, transform, ...) records: https://github.com/epics-modules/xxx/blob/5503ab0734ebaa21826888fec2821ceb05a8e928/iocBoot/iocxxx/common.iocsh#L32-L36In fact, the first line creates instances 1..10 and the second creates instances 10..19. The problem is created by a simplification in the
userCalc_extra.iocsh
file on lines such as:that create 10 instances that start with a common number. Instance for
userCalc20
cannot be created from such a file without create the remaining21..29
instances. The GUI screen files call for instances of that20
th PV: https://github.com/epics-modules/xxx/blob/master/xxxApp/op/adl/ioc_tools.adl#L275-L309Here's an example (from phoebus):