added separate magnet file

This commit is contained in:
2022-09-17 09:58:15 +02:00
parent 84378cf9cf
commit aa90834b7d

14
magnet.py Normal file
View File

@ -0,0 +1,14 @@
from slic.core.adjustable import PVAdjustable
class Magnet(PVAdjustable):
def __init__(self, ID, accuracy=0.01):
pvn_set = ID + ":I-SET"
pvn_read = ID + ":I-READ"
super().__init__(pvn_set, pvn_read, accuracy=accuracy)
# pvn_comp = ID + ":I_COMP"
# super().__init__(pvn_set, pvn_read, pvname_moving=pvn_comp) # COMP updates only once per second, so we cannot use it as moving status