You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Perl edited this page Apr 24, 2023
·
3 revisions
Testing using ophyd.sim devices with PVs which are meant to be linked
For many real devices, such as the Zebra, or EPICS motors, we set a demand value and read back a readback value. ophyd.sim devices don't have a means of connecting PVs to emulate this, but we can do it ourselves. For example (adapted from test_zebra_setup.py - more examples there), we can replace the set method on our demand value with a Mock which ensures our readback value is updated:
is executed in the RunEngine, this will ensure the value is passed on to the readback value, allowing a plan which relies on this behaviour to be simulated.