move() added
This commit is contained in:
11
attocube.py
11
attocube.py
@ -85,9 +85,8 @@ class AttocubeAxis(Adjustable):
|
|||||||
frequency = PV(ID + "-FREQ_SET"),
|
frequency = PV(ID + "-FREQ_SET"),
|
||||||
frequency_rb = PV(ID + "-FREQ_RB"),
|
frequency_rb = PV(ID + "-FREQ_RB"),
|
||||||
moving_status = PV(ID + "-MOVING"),
|
moving_status = PV(ID + "-MOVING"),
|
||||||
hlm = PV(ID + ":HLM"),
|
hlm = PV(ID + ":HLM"), # not implemented yet, but hopefully will be added later
|
||||||
llm = PV(ID + ":LLM"),
|
llm = PV(ID + ":LLM"), # not implemented yet, but hopefully will be added later
|
||||||
set_pos = PV(ID + ":SET_POS"),
|
|
||||||
stop = PV(ID + "-STOP_AUTO_CMD"),
|
stop = PV(ID + "-STOP_AUTO_CMD"),
|
||||||
move = PV(ID + "-MV_ABS_SET"),
|
move = PV(ID + "-MV_ABS_SET"),
|
||||||
stop_auto_cmd = PV(ID + "-STOP_AUTO_CMD"),
|
stop_auto_cmd = PV(ID + "-STOP_AUTO_CMD"),
|
||||||
@ -96,7 +95,6 @@ class AttocubeAxis(Adjustable):
|
|||||||
target_reached = PV(ID + "-TARGET_REACHED_RB"),
|
target_reached = PV(ID + "-TARGET_REACHED_RB"),
|
||||||
target_ground = PV(ID + "-TARGET_GND_SET"),
|
target_ground = PV(ID + "-TARGET_GND_SET"),
|
||||||
output_enabled = PV(ID + "-ENABLE_SET"),
|
output_enabled = PV(ID + "-ENABLE_SET"),
|
||||||
twv = PV(ID + ":TWV"),
|
|
||||||
units = PV(ID + "-UNIT"),
|
units = PV(ID + "-UNIT"),
|
||||||
output_RB = PV(ID + "-ENABLE_RB"),
|
output_RB = PV(ID + "-ENABLE_RB"),
|
||||||
)
|
)
|
||||||
@ -356,6 +354,11 @@ class AttocubeAxis(Adjustable):
|
|||||||
|
|
||||||
return UNKNOWN_ERROR
|
return UNKNOWN_ERROR
|
||||||
|
|
||||||
|
def move(self, val, relative=False, wait=True):
|
||||||
|
''''Same as set target value, just for convenience'''
|
||||||
|
return self.set_target_value(val, relative=relative, wait=wait)
|
||||||
|
|
||||||
|
|
||||||
def gui(self):
|
def gui(self):
|
||||||
device, motor = self.ID.split(":")
|
device, motor = self.ID.split(":")
|
||||||
cmd = f'caqtdm -macro "DEVICE={device}" S_ANC350.ui'
|
cmd = f'caqtdm -macro "DEVICE={device}" S_ANC350.ui'
|
||||||
|
Reference in New Issue
Block a user