Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tempus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
karaboDevices
tempus
Commits
a0527dfb
Commit
a0527dfb
authored
3 months ago
by
Andrea Parenti
Committed by
Jonathan Correa Magdalena
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add 'Reset Fast Link' command
parent
518fecb3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!2
Draft: Feat/p8003
,
!1
First version
Pipeline
#162589
failed
3 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/karabo_reset_fast_links.py
+7
-0
7 additions, 0 deletions
scripts/karabo_reset_fast_links.py
src/tempus/Tempus.py
+13
-0
13 additions, 0 deletions
src/tempus/Tempus.py
with
20 additions
and
0 deletions
scripts/karabo_reset_fast_links.py
0 → 100644
+
7
−
0
View file @
a0527dfb
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
"
)
This diff is collapsed.
Click to expand it.
src/tempus/Tempus.py
+
13
−
0
View file @
a0527dfb
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment