Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mmm_experiments/iocs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 1 addition & 2 deletions iocs/switchboard.py → mmm_experiments/iocs/switchboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from textwrap import dedent

from caproto.server import PVGroup, ioc_arg_parser, pvproperty, run
from caproto.server import PvpropertyInteger as Integer


class PDFMMMSwitchBoard(PVGroup):
Expand All @@ -21,7 +20,7 @@ class PDFMMMSwitchBoard(PVGroup):

publish_to_queue = pvproperty(
value=1,
dtype=Integer,
dtype=int,
name="Pub-CMD",
doc="""A flag to be used to tell the adjudicator to do it's job.

Expand Down
12 changes: 12 additions & 0 deletions mmm_experiments/switchboard-ioc.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=0MQ bridge being used for MMM experiments

[Service]
User=xf28id1
Group=xf28id1
Environment="PATH=/home/xf28id1/project-mmm/mmm-experiments/venv/bin/:$PATH EPICS_CAS_AUTO_BEACON_ADDR_LIST=no EPICS_CAS_BEACON_ADDR_LIST=10.66.219.255"
ExecStart=/home/xf28id1/project-mmm/mmm-experiments/venv/bin/python3 -m mmm_experiments.ioc.switchboard --xf 'XF:28ID1-DA' --list-pvs -v
Restart=always

[Install]
WantedBy=multi-user.target