Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DG_PY_FofbLegacy
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
DG
DS_DG_PyTango_Package
DG_PY_FofbLegacy
Commits
896acd92
Commit
896acd92
authored
Jan 19, 2024
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
feat: Add a command to zero the ref in Liberas
parent
c350c3a4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
DG_PY_FOFBLegacy.py
+21
-0
21 additions, 0 deletions
DG_PY_FOFBLegacy.py
DG_PY_FOFBLegacy.xmi
+9
-0
9 additions, 0 deletions
DG_PY_FOFBLegacy.xmi
with
30 additions
and
0 deletions
DG_PY_FOFBLegacy.py
+
21
−
0
View file @
896acd92
...
...
@@ -26,6 +26,7 @@ from tango import AttrWriteType, PipeWriteType
# Additional import
#----- PROTECTED REGION ID(DG_PY_FOFBLegacy.additionnal_import) ENABLED START -----#
import
datetime
import
time
import
numpy
as
np
#----- PROTECTED REGION END -----# // DG_PY_FOFBLegacy.additionnal_import
...
...
@@ -713,6 +714,26 @@ class DG_PY_FOFBLegacy(Device):
self
.
info_stream
(
"
Performed LoadInvRespMatrixY()
"
)
#----- PROTECTED REGION END -----# // DG_PY_FOFBLegacy.StartStep07LoadZInvRespMatrix
@command
(
)
@DebugIt
()
def
zeroRefLibera
(
self
):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.zeroRefLibera) ENABLED START #
"""
:return:None
"""
try
:
self
.
prx_fofbmanager
.
xreforbit
=
np
.
zeros
(
122
)
self
.
prx_fofbmanager
.
zreforbit
=
np
.
zeros
(
122
)
time
.
sleep
(
1
)
self
.
prx_fofbmanager
.
StartStep04LoadXRefOrbit
()
self
.
prx_fofbmanager
.
StartStep05LoadZRefOrbit
()
except
Exception
as
e
:
self
.
error_stream
(
str
(
e
))
# PROTECTED REGION END # // DG_PY_FOFBLegacy.zeroRefLibera
# ----------
# Run server
# ----------
...
...
This diff is collapsed.
Click to expand it.
DG_PY_FOFBLegacy.xmi
+
9
−
0
View file @
896acd92
...
...
@@ -116,6 +116,15 @@
</argout>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
</commands>
<commands
name=
"zeroRefLibera"
description=
""
execMethod=
"zero_ref_libera"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
isDynamic=
"false"
>
<argin
description=
""
>
<type
xsi:type=
"pogoDsl:VoidType"
/>
</argin>
<argout
description=
""
>
<type
xsi:type=
"pogoDsl:VoidType"
/>
</argout>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
</commands>
<attributes
name=
"xRefOrbitLoadedOnDevice"
attType=
"Scalar"
rwType=
"READ"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
maxX=
""
maxY=
""
allocReadMember=
"true"
isDynamic=
"false"
>
<dataType
xsi:type=
"pogoDsl:BooleanType"
/>
<changeEvent
fire=
"false"
libCheckCriteria=
"false"
/>
...
...
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