added separate magnet file
This commit is contained in:
14
magnet.py
Normal file
14
magnet.py
Normal 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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user