-
Notifications
You must be signed in to change notification settings - Fork 10
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
PV value not getting reflected #560
Comments
As a general rule, you should avoid scripts. If you want to have some PV automatically return to 0 after having been set to 1, check for how to implement that on the IOC side. Learn about the EPICS database, see specifically BO record and its HIGH field for this, https://epics.anl.gov/base/R3-15/8-docs/boRecord.html
Check the example displays, Scripts, Solitaire or Conway, as examples for a script running concurrently with the display, and PV updates being reflected in the display. There is a limit to one script executing at a time per display, so maybe you're trying to concurrently run two scripts? Again, you should be able to completely implement all your displays for all your IOCs without having to use any scripts. After all that's what EPICS sites have been doing for decades. Scripts are only needed to implement silly game examples like Solitaire or Conway, or to interface with things outside of EPICS IOCs, like experiment schedule databases which are available via web services and you really think you need to display some of that within a display. |
Thanks for the suggestion.
Sorry, I missed some info. I think this rule script is blocked until the action button script is executed. Correct me if I am wrong. Thanks!! |
Why do you need a rule for that? |
So what's happening could be: Button writes 1, then starts the script which is sleeping for 10 seconds. Overall this looks like a good example for using scripts to sabotage the display. The "reset to zero" should be handled on the IOC, no script. |
Got it Thanks!! |
Then your underlying PV simply needs to have more values. |
I have a display consisting of two widgets
The first widget(led on/off) has a PV TEST: STATUS
The second widget(action button) has two actions
I am executing all actions as one
But the first led widget is not responding to the changes to PV TEST: STATUS when the action button is clicked.
I think there might be some kind of lock on that PV and as both widgets are on the same display which may be running as a single thread.
I tried placing the action button on a different display, then it worked.
Any way we can run it on the same display?
The text was updated successfully, but these errors were encountered: