Skip to content

Ff 92#23

Open
kleleux wants to merge 12 commits into
masterfrom
FF-92
Open

Ff 92#23
kleleux wants to merge 12 commits into
masterfrom
FF-92

Conversation

@kleleux
Copy link
Copy Markdown
Collaborator

@kleleux kleleux commented Dec 9, 2025

Implemented new feature based off of new :ADISABLED PV that allows for the disabling of writing to certain actuator devices. For example, Chris Zimmer wanted a feedback loop (sioc-bc1b-tr01) that only controls YCOR because the XCOR is used in the longitudinal energy control. The problem is that all of the matrix math and support scripts need X/Y measurement device pairs as well as XCOR/YCOR actuator pairs to work. This allows for all of the support scripts to work without actually writing to an actuator. Couldn't use the :AUSEDBYLOOP PV because the device support is not bi-directional. The :AUSEDBYLOOP PV is set dynamically by the code base during the voting scheme in the longitudinal feedback. This is a binary input record, so it reads from the code. To send data to the code, you need a binary output record. The new :ADISABLED PV is used as a conditional in Loop.cc for writing to the actuators. This is an Actuator specific pv whereas the :USEDBYLOOP PV is a Device class attribute (for state, measurement, and actuator devices). The BC1B_settings.sh script is very important to this feedback loop working properly.

in sioc-bc1b-tr01 specifically because that is being used by the
longitudinal feedback but we still require an XCOR/YCOR pair to compute
the matrices and for the support scripts to work. We are utilizing the
:A<num>USEDBYLOOP pv as a condition on whether or not to actuate a
magnet. This is a very specific use case of the feedback.
USEDBYLOOP pv is a binary input record, which means the code can
dynamically set this value, but the user cannot get a value down to the
code level. We want to statically set a pv and get that value down to
the code to use as a condition for actuation. This requires a binary
output record.
from the code, it can only be written to from the code. We are using a
variable to hold this value instead of the PV
@kleleux kleleux requested a review from jamock December 9, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant