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

Callback on cameraPVPrefix #134

Open
kematusik opened this issue Dec 2, 2021 · 1 comment
Open

Callback on cameraPVPrefix #134

kematusik opened this issue Dec 2, 2021 · 1 comment

Comments

@kematusik
Copy link

As I understand, because all of the camera PVs get set in the init method of tomoscan.py, when I want to switch detector prefixes (i.e. switch between detectors), the Tomoscan server has to be relaunched. Is it desirable to add a callback on the CameraPVPrefix PV and reset all of the PVs associated with the change? Thanks so much.

@MarkRivers
Copy link
Collaborator

This is a good point. I ran into a similar issue recently. I wanted to change which motor was used to move the sample out of the beam in the X direction to take the flat field. We have 2 motors that can do this, one below the rotation axis (limited travel) and one above the rotation axis (more travel). In order to change those motors I needed to restart tomoscan.

I think we should move everything related to connecting to PVs out of init and into a new connectPVs method. That can be called whenever a PV name is changed.

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

No branches or pull requests

2 participants