Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PythonControl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Operation
PythonControl
Commits
2f9f46ce
Commit
2f9f46ce
authored
Apr 11, 2024
by
Alexis GAMELIN
Browse files
Options
Downloads
Patches
Plain Diff
Update FOFB device to prevent usage if FOFB is running
parent
e82aa7d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
chro.py
+6
-2
6 additions, 2 deletions
chro.py
growth_damp.py
+12
-5
12 additions, 5 deletions
growth_damp.py
with
18 additions
and
7 deletions
chro.py
+
6
−
2
View file @
2f9f46ce
...
...
@@ -18,6 +18,7 @@ tuneX = DeviceProxy("ans/rf/bbfdataviewer.1-tunex")
tuneZ
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.2-tunez
"
)
RF
=
DeviceProxy
(
'
ANS/RF/MasterClock
'
)
service_locker
=
DeviceProxy
(
"
ANS/CA/SERVICE-LOCKER-MATLAB
"
)
fofb_watcher
=
DeviceProxy
(
"
ANS/DG/FOFB-WATCHER
"
)
#%% chroma measurement
...
...
@@ -66,8 +67,11 @@ def chroma_measurement(N_step_delta=5,
if
delta_change_max
>
0.004
:
raise
ValueError
(
"
Maximum energy variation should be lower or equal to 0.4 % = 0.004.
"
)
if
service_locker
.
sofb
or
service_locker
.
fofb
:
raise
ValueError
(
"
Stop the SOFB and FOFB
"
)
if
service_locker
.
sofb
:
raise
ValueError
(
"
Stop the SOFB
"
)
if
fofb_watcher
.
fofbrunning_x
or
fofb_watcher
.
fofbrunning_y
:
raise
ValueError
(
"
Stop the FOFB
"
)
if
service_locker
.
isTunexFBRunning
or
service_locker
.
isTunezFBRunning
:
raise
ValueError
(
"
Stop the tune FB
"
)
...
...
This diff is collapsed.
Click to expand it.
growth_damp.py
+
12
−
5
View file @
2f9f46ce
...
...
@@ -154,6 +154,7 @@ def growth_damp(window_width,
# Needed devices
delay
=
DeviceProxy
(
"
ANS-C09/RF/FINE_DELAY_GENERATOR
"
)
service_locker
=
DeviceProxy
(
"
ANS/CA/SERVICE-LOCKER-MATLAB
"
)
fofb_watcher
=
DeviceProxy
(
"
ANS/DG/FOFB-WATCHER
"
)
tuneX
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.1-tunex
"
)
tuneZ
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.2-tunez
"
)
switch_FBT
=
DeviceProxy
(
"
ans/rf/switch_fbt
"
)
...
...
@@ -165,6 +166,15 @@ def growth_damp(window_width,
ValueError
(
"
No FBT ?
"
)
fbt
=
DeviceProxy
(
fbt_name
)
if
service_locker
.
sofb
:
raise
ValueError
(
"
Stop the SOFB
"
)
if
fofb_watcher
.
fofbrunning_x
or
fofb_watcher
.
fofbrunning_y
:
raise
ValueError
(
"
Stop the FOFB
"
)
if
service_locker
.
isTunexFBRunning
or
service_locker
.
isTunezFBRunning
:
raise
ValueError
(
"
Stop the tune FB
"
)
if
datasize
!=
4
:
# Change data size
fbt
.
automaticacquisitionoff
()
...
...
@@ -177,9 +187,6 @@ def growth_damp(window_width,
delay
.
activateChannelA
=
True
# Stop MNO
if
(
service_locker
.
isTunexFBRunning
)
or
(
service_locker
.
isTunezFBRunning
):
raise
ValueError
(
"
Tune FB is running, MNO can not be stopped.
"
)
else
:
selMNOsource_initial
=
fbt
.
selMNOsource
fbt
.
selMNOsource
=
0
# no MNO
...
...
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