Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beamlinetools_old
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
HZB
Bluesky
beamlines_endstations
MySpot
source
beamlinetools_old
Commits
84106b40
Commit
84106b40
authored
1 year ago
by
Simone Vadilonga
Browse files
Options
Downloads
Patches
Plain Diff
add minor cahnges to simulated devices
parent
02baf111
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beamlinetools/BEAMLINE_CONFIG/beamline.py
+6
-6
6 additions, 6 deletions
beamlinetools/BEAMLINE_CONFIG/beamline.py
beamlinetools/devices/genNodeClass.py
+8
-8
8 additions, 8 deletions
beamlinetools/devices/genNodeClass.py
with
14 additions
and
14 deletions
beamlinetools/BEAMLINE_CONFIG/beamline.py
+
6
−
6
View file @
84106b40
...
...
@@ -94,22 +94,22 @@ from beamlinetools.devices.mca_old import xMap
from
.base
import
RE
from
ophyd_async.core
import
DeviceCollector
from
secop_ophyd.SECoPDevices
import
SECoP
_
Node
_
Device
from
secop_ophyd.SECoPDevices
import
SECoPNodeDevice
import
asyncio
from
beamlinetools.devices.genNodeClass
import
Reactor_cell
,
Gas_dosing
from
pprint
import
pprint
# relative path to directory where generated Module should be stored
genCodeDir
=
"
beamlinetools/devices
"
#
genCodeDir = "
/opt/bluesky/
beamlinetools/devices"
# # Connect to Gas Dosing SEC Node and generate ophyd device trees
gas_d
=
SECoP
_
Node
_
Device
.
create
(
'
localhost
'
,
'
10800
'
,
RE
.
loop
)
gas_d
=
SECoPNodeDevice
.
create
(
'
localhost
'
,
'
10800
'
,
RE
.
loop
)
# # Connect to Reactor Cell SEC Node and generate ophyd device tree
reactor_c
=
SECoP
_
Node
_
Device
.
create
(
'
localhost
'
,
'
10801
'
,
RE
.
loop
)
reactor_c
=
SECoPNodeDevice
.
create
(
'
localhost
'
,
'
10801
'
,
RE
.
loop
)
gas_d
.
class_from_instance
(
genCodeDir
)
reactor_c
.
class_from_instance
(
genCodeDir
)
gas_d
.
class_from_instance
()
reactor_c
.
class_from_instance
()
reactor_c
:
Reactor_cell
=
reactor_c
gas_d
:
Gas_dosing
=
gas_d
This diff is collapsed.
Click to expand it.
beamlinetools/devices/genNodeClass.py
+
8
−
8
View file @
84106b40
from
secop_ophyd.SECoPDevices
import
SECoP
_
CMD
_
Device
,
SECoPReadableDevice
,
SECoPMoveableDevice
,
SECoP
_
Node
_
Device
from
secop_ophyd.SECoPDevices
import
SECoPCMDDevice
,
SECoPReadableDevice
,
SECoPMoveableDevice
,
SECoPNodeDevice
from
ophyd_async.core.signal
import
SignalR
,
SignalRW
...
...
@@ -14,8 +14,8 @@ class MassflowController(SECoPMoveableDevice):
ramp
:
SignalRW
gastype
:
SignalR
tolerance
:
SignalR
stop_CMD
:
SECoP
_
CMD
_
Device
test_cmd_CMD
:
SECoP
_
CMD
_
Device
stop_CMD
:
SECoPCMDDevice
test_cmd_CMD
:
SECoPCMDDevice
class
PressureController
(
SECoPMoveableDevice
):
...
...
@@ -29,7 +29,7 @@ class PressureController(SECoPMoveableDevice):
target
:
SignalRW
ramp
:
SignalRW
tolerance
:
SignalR
stop_CMD
:
SECoP
_
CMD
_
Device
stop_CMD
:
SECoPCMDDevice
class
TemperatureController
(
SECoPMoveableDevice
):
...
...
@@ -43,7 +43,7 @@ class TemperatureController(SECoPMoveableDevice):
target
:
SignalRW
ramp
:
SignalRW
tolerance
:
SignalR
stop_CMD
:
SECoP
_
CMD
_
Device
stop_CMD
:
SECoPCMDDevice
class
TemperatureSensor
(
SECoPReadableDevice
):
...
...
@@ -55,10 +55,10 @@ class TemperatureSensor(SECoPReadableDevice):
features
:
SignalR
value
:
SignalR
heat_flux
:
SignalRW
stop_CMD
:
SECoP
_
CMD
_
Device
stop_CMD
:
SECoPCMDDevice
class
Gas_dosing
(
SECoP
_
Node
_
Device
):
class
Gas_dosing
(
SECoPNodeDevice
):
equipment_id
:
SignalR
firmware
:
SignalR
version
:
SignalR
...
...
@@ -70,7 +70,7 @@ class Gas_dosing(SECoP_Node_Device):
backpressure_contr1
:
PressureController
class
Reactor_cell
(
SECoP
_
Node
_
Device
):
class
Reactor_cell
(
SECoPNodeDevice
):
equipment_id
:
SignalR
firmware
:
SignalR
version
:
SignalR
...
...
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