epics-modules / xxx

APS BCDA synApps module: xxx
http://epics-modules.github.io/xxx
Other
5 stars 6 forks source link

userCalc20 is not created #72

Open prjemian opened 7 months ago

prjemian commented 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

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:

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

Here's an example (from phoebus): image