move() added

This commit is contained in:
Jakub Vonka
2022-10-03 22:28:12 +02:00
parent 1769ae3aa3
commit 95cefd12d7

View File

@ -85,9 +85,8 @@ class AttocubeAxis(Adjustable):
frequency = PV(ID + "-FREQ_SET"),
frequency_rb = PV(ID + "-FREQ_RB"),
moving_status = PV(ID + "-MOVING"),
hlm = PV(ID + ":HLM"),
llm = PV(ID + ":LLM"),
set_pos = PV(ID + ":SET_POS"),
hlm = PV(ID + ":HLM"), # not implemented yet, but hopefully will be added later
llm = PV(ID + ":LLM"), # not implemented yet, but hopefully will be added later
stop = PV(ID + "-STOP_AUTO_CMD"),
move = PV(ID + "-MV_ABS_SET"),
stop_auto_cmd = PV(ID + "-STOP_AUTO_CMD"),
@ -96,7 +95,6 @@ class AttocubeAxis(Adjustable):
target_reached = PV(ID + "-TARGET_REACHED_RB"),
target_ground = PV(ID + "-TARGET_GND_SET"),
output_enabled = PV(ID + "-ENABLE_SET"),
twv = PV(ID + ":TWV"),
units = PV(ID + "-UNIT"),
output_RB = PV(ID + "-ENABLE_RB"),
)
@ -356,6 +354,11 @@ class AttocubeAxis(Adjustable):
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):
device, motor = self.ID.split(":")
cmd = f'caqtdm -macro "DEVICE={device}" S_ANC350.ui'