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

Simulate a motorRecord #64

Closed
DominicOram opened this issue Jul 1, 2022 · 4 comments
Closed

Simulate a motorRecord #64

DominicOram opened this issue Jul 1, 2022 · 4 comments

Comments

@DominicOram
Copy link
Collaborator

It would be useful to be able to use an EpicsAdapter to simulate a motorRecord. Currently we cannot do this as https://github.com/dls-controls/pythonSoftIOC does not support motor records

@DominicOram
Copy link
Collaborator Author

I thought we might be able to get away with using analog records but we can't so this does require some thought. @thomascobb I know that from discussion with @callumforrester DLS is moving away from using the motor record but I think we will need some kind of interim solution for this anyway as it's so pervasive currently.

@coretl
Copy link
Contributor

coretl commented Jul 5, 2022

I suggest the best way is to use the real pmac IOC, and make a simulated GeoBrick. We have a simulator already here: https://github.com/dls-controls/pmac/blob/dls-master/sim/SimPMAC.py which we have been meaning to convert to tickit. The threaded bits can go away and be replaced with the tickit socket interface and on_event handling, but the logic looks about right as it is.

@coretl
Copy link
Contributor

coretl commented Jul 5, 2022

This is a python representation of what the trajectory scan program currently does:
https://github.com/dls-controls/pmac/blob/dls-master/sim/SimPMAC.py#L215
We would want to write a similar routine for the grid scan program and trigger that when the grid scan motion program is run

@DominicOram
Copy link
Collaborator Author

Closing in favor of DiamondLightSource/tickit-devices#2

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