diff --git a/magnet.py b/magnet.py new file mode 100644 index 0000000..fa8f9d0 --- /dev/null +++ b/magnet.py @@ -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 + + +