-
Notifications
You must be signed in to change notification settings - Fork 113
Fix Write Action command if defaut PVFactory set to a PVFactory manages a core-name different from given pvname eg : loc://pv_name #3412
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
base: master
Are you sure you want to change the base?
Conversation
|
@katysaintin is it possible to create a test .opi to reproduce this issue |
|
|
No rush |
Please find the settings.ini and the Display to reproduce the bug. And a Display to reproduce the bug In the display , Write 1 on loc://my_pv works fine in TextEntry and Boolean Button . without precising the loc:// It will occur also if you set `org.phoebus.pv/default=pva' if the defaut EPICS protocol is pv access. Here is the stacktrace with no correction |
|
Hello @shroffk I have just add a Unit Test for testing the corrections. |
|
Hello Kunal, could we approve this PR ? Thank you for your help . |
|
@katysaintin, sorry for the delay, will check this. |
|
@katysaintin, I am a bit confused. Actually with default datasource ca and pva I can write to a bo PV from the action button if PV name is taken from widget PV name field (i.e. not specified explicitly in action dialog editor other than $(pv_name)). |
In fact, if in your settings you set a default PV in modifying the configuration in this way. To reproduce the bug in setting a default datasource different from ca or pva, such as local This test, set loc as a default type. The problem is for muscade or tango default type, To test my correction , you juste have to run the Unit test, without my modification and with. I hope is it clear. thank you for your help. Katy |
|
Concerning the other modification, is for muscade or tango datasource, In ca and pv , boolean are enumerated. But I'm agree, that I can remove this modification from the pull request and provide the correction in a separate PR. Are you OK with that ? Thank you :) . Katy |
Remove modification on JCA_PV, to manage Boolean Type
|
Hello @georgweiss , As we told, I remove the PV_CA modification from the PR. Default PV Type in locorg.phoebus.pv/default=loc Then open bob file And try to write on loc://my_pv with write action. It will occure this error : The unit test reproduce the problem. Best regards, |
|
Hello @georgweiss @shroffk @kasemir , I send you a new use case to show you, that not manage the prefix in the PVFactory will induce and error in Phoebus. Because JCA_PVFactory create a JCA_PV regardless the prefix. So you will find in my following use case a bob with using both counter and ca://counter , doublearray and ca://doublearray You will also find a video of the bug So, could we thinking about a solution, that works for any datasource ? Thank you for your help. |
|
Hello @georgweiss and @shroffk , For the case of loc:// , muscade:// , tango:// I have now to fix LocalFactory to override methode PVFactory.getCoreName(String name) , to reference correctly a local PV in the PVPool Map references. I will do that in a different PR. |
|
@katysaintin, I'm fine with this, but I'd like @shroffk to share his take on this. |

Fix Action WritePV on ButtonWidget.