Changing EpicsSignal to PytmcSignal for plc value#1318
Changing EpicsSignal to PytmcSignal for plc value#1318KaushikMalapati merged 3 commits intopcdshub:masterfrom
Conversation
|
I think that the fix Nicholas mentioned about making stEpicsToPLC a VAR_IN_OUT needs to be deployed to tmo-motion before I can "test" this with li2k4, although I'm pretty sure that this will work since the indicator is using the _RBV pv now. I got confused when I saw it wasn't updating until I saw that the old sequence mover is currently running. |
NSLentz
left a comment
There was a problem hiding this comment.
This looks good, however, Tong told me she already tested the change to the sequence mover and that it was working and we applied that change to the PLC so perhaps something else is happening if it still has issues updating on the display?
|
I suspect that you'll never catch this ui element updating unless there's an issue with the PLC code that gets it stuck in the Showing the mouseover text with the corrected PV connected is enough of a test for the UI side IMO |
|
I think this is mergeable with a pre-release docs added (no need to make it detailed, just a quick one-liner would suffice) |
|
I forgot to push my docs yesterday. I was testing something on tmo-motion before I did this so I think I overwrote the VAR_IN changes that were present. I wonder if it makes sense to not show the indicator for things like this, I remember talking about it in #1303. |
docs/source/upcoming_release_notes/1318-TwinCATStatePositionerResetIndicator.rst
Outdated
Show resolved
Hide resolved
It's possible that the indicator is more distracting than useful. I think this tweak is better than what we had before because it will help us find PLC bugs, maybe we can follow-up by thinking more broadly about what would be most useful to show for these sorts of "set and then they get reset" sorts of signals. If we can think of a most-correct thing to show in the readback indicator we can add it as a standard typhos variety and it will absolutely get some use in various places. Some examples of possible variants, to give an idea of the decision space:
|
|
Is "getting stuck in the I 100% agree that this is an obvious improvement over the status quo though, I have no objections to merging this. |
It happened once in TMO as part of a tough to track down bug, otherwise I haven't seen it. I suspect it only could happen as a bug. |
|
Going to merge this for now, but I think it would be nice for the rbv circle to momentarily light up if the caput was successful, although I'm not sure how to do this. I'm not sure if having an indicator for the setpoint would work for this. Would the setpoint pv update if the value changed for a single cycle? |
|
As a rough outline I think the way I'd implement it is (in
There are more details but that would be my first try. Then I'd need to add a variety metadata entry for it and we'd be able to use it here. |
Description
Made reset_cmd in TwinCATStatePositioner a PytmcSignal instead of an EpicsSignal so that the indicator uses the _RBV pv
Motivation and Context
https://jira.slac.stanford.edu/browse/ECS-7110
https://jira.slac.stanford.edu/browse/ECS-6741
How Has This Been Tested?
Not tested yet.
Where Has This Been Documented?
upcoming release notes
Pre-merge checklist