Closed hududed closed 4 years ago
Did you get your question answered yet in some other chat forum? The ophyd repository issue tracker is far better (more visibility for your question and any responses) than this repo, which is for the installation and administration of the Bluesky framework.
Yes, my problem is small-scale and am working to interface with bluesky through yaq. Thanks
You're on the right track with your example code but need to dig a little deeper. Your callback needs to know which object to describe. To do this, I usually subclass EpicsSignal
:
class MyEpicsSignal(EpicsSignal):
def reporter(self, value, old_value, **kwargs):
print(f"{self.name}: Value changed from {old_value} to {value}.")
x = MyEpicsSignal(XXX, name='x')
x.subscribe(x.reporter)
Then, you get a separate reporter for each instance of MyEpicsSignal
.
I am new to EPICS instruments and I am not sure if this is the right place to ask this question.
I have a Newport XPS-D4 control stage and I wish to monitor the positions continuously. I control the stage according to here. The code is like this:
Output:
I can follow tutorial codes using simulated hardware, but how can I add e.g. this stage controller instrument to monitor the positions of all the axes in here: