Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

userCalc20 is not created #72

Open
prjemian opened this issue Mar 12, 2024 · 0 comments
Open

userCalc20 is not created #72

prjemian opened this issue Mar 12, 2024 · 0 comments
Labels

Comments

@prjemian
Copy link
Contributor

Looking at the common.iocsh script, these lines purport to create 20 instances of calc (swait, calcout, transform, ...) records:

### Stuff for user programming ###
iocshLoad("$(CALC)/iocsh/userCalc.iocsh", "PREFIX=$(PREFIX), ARRAY_SIZE=8000")
#- Load 10 more of all the user calcs, N=1 creates usercalcs 10-19
iocshLoad("$(CALC)/iocsh/userCalc_extra.iocsh", "PREFIX=$(PREFIX), N=1, ARRAY_SIZE=8000")

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

@prjemian prjemian added the bug label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant