Skip to content
Snippets Groups Projects
Commit a0527dfb authored by Andrea Parenti's avatar Andrea Parenti Committed by Jonathan Correa Magdalena
Browse files

Add 'Reset Fast Link' command

parent 518fecb3
No related branches found
No related tags found
2 merge requests!2Draft: Feat/p8003,!1First version
Pipeline #162589 failed
import os
APP_DIR = "/home/timepix4/application"
os.system(APP_DIR + "/sc_set_gwt_link_up.py -i 0x0 -l 0x0 -s 0x2")
os.system(APP_DIR + "/sc_set_gwt_link_up.py -i 0x1 -l 0x0 -s 0x2")
......@@ -217,6 +217,19 @@ class Tempus(Device):
self.background_task = background(
self._execute_command(cmnd, State.ON, "Initialized"))
@Slot(
displayedName="Reset Fast-Links",
allowedStates={State.ON, State.ACTIVE})
async def resetFastLinks(self):
self.state = State.CHANGING
cmnd = [
self.COMMAND, *self.ARGS,
f"{self.SCRIPT_DIR}/karabo_reset_fast_links.py"]
self.commandLog = (
f"Resetting fast-links:\n{' '.join(cmnd)}")
self.background_task = background(
self._execute_command(cmnd, State.INIT, "Fast links reset done"))
@Slot(
displayedName="Configure",
description="Run the configuration sequence. This can take about "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment