-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from epics-containers/2024-rework
Add How to make a Generic IOC tutorial
- Loading branch information
Showing
19 changed files
with
948 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Builder2ibek Conversion Tool | ||
============================ | ||
|
||
.. warning:: | ||
|
||
This page is only relevant to DLS users who are converting an xml | ||
builder beamline to epics-containers. i.e. those whose beamlines | ||
have a BLxxY-BUILDER project. | ||
|
||
TODO: this page is WIP and will be updated by Feb 2024. | ||
|
||
``builder2ibek`` is a tool to convert DLS builder XML to ibek instance YAML. | ||
It is for working with converting IOC instances to epics-containers. | ||
|
||
At present (until a new python app distribution mechanism is in place) it | ||
is installed at DLS in the following location: | ||
|
||
``/dls_sw/work/python3/ec-venv/bin/builder2ibek`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
Builder2ibek.support Conversion Tool | ||
==================================== | ||
|
||
.. warning:: | ||
|
||
This page is only relevant to DLS users who are converting | ||
a DLS support module with builder support into an epics-containers | ||
Generic IOC. i.e. support modules that have an ``etc/builder.py`` file. | ||
|
||
TODO: this page is WIP and will be updated by Feb 2024. | ||
|
||
``builder2ibek.support`` is a tool to convert DLS builder support modules | ||
into ibek support YAML for the ``ibek-support`` repository. | ||
|
||
|
||
builder2ibek.support example | ||
---------------------------- | ||
|
||
.. code:: bash | ||
./builder2ibek.support.py /dls_sw/prod/R3.14.12.7/support/lakeshore340/2-6 ioc-lakeshore340/ibek-support/lakeshore340/lakeshore340.yaml | ||
.. code-block:: xml | ||
<?xml version="1.0" ?> | ||
<components arch="linux-x86_64"> | ||
<devIocStats.devIocStatsHelper ioc="BL16I-EA-IOC-07" name="STATS"/> | ||
<asyn.AsynIP name="p1" port="127.0.0.1:5400"/> | ||
<lakeshore340.lakeshore340 ADDR="12" LOOP="1" P="BL16I-EA-LS340-01" PORT="p1" SCAN="5" TEMPSCAN="1" gda_desc="Lakeshore 340 Temperature Controller" gda_name="LS340b" name="lakeshore"/> | ||
<EPICS_BASE.dbpf name="d1" pv="BL16I-EA-LS340-01:DISABLE" value="1"/> | ||
</components> | ||
.. code:: yaml | ||
# yaml-language-server: $schema=https://github.com/epics-containers/ibek/releases/download/1.2.0/ibek.support.schema.json | ||
module: lakeshore340 | ||
defs: | ||
- name: lakeshore340 | ||
description: |- | ||
Lakeshore 340 Temperature Controller | ||
Notes: The temperatures in Kelvin are archived once every 10 secs. | ||
args: | ||
- type: str | ||
name: P | ||
description: |- | ||
Prefix for PV name | ||
- type: str | ||
name: PORT | ||
description: |- | ||
Bus/Port Address (eg. ASYN Port). | ||
- type: str | ||
name: ADDR | ||
description: |- | ||
Address on the bus | ||
- type: str | ||
name: SCAN | ||
description: |- | ||
SCAN rate for non-temperature/voltage parameters. | ||
- type: str | ||
name: TEMPSCAN | ||
description: |- | ||
SCAN rate for the temperature/voltage readings | ||
- type: id | ||
name: name | ||
description: |- | ||
Object and gui association name | ||
- type: str | ||
name: gda_name | ||
description: |- | ||
Name in gda interface file (Default = ) | ||
- type: str | ||
name: gda_desc | ||
description: |- | ||
Description in gda interface file (Default = ) | ||
- type: int | ||
name: LOOP | ||
description: |- | ||
Which heater PID loop to control (Default = 1) | ||
default: 1 | ||
databases: | ||
- file: $(LAKESHORE340)/db/lakeshore340.template | ||
args: | ||
name: | ||
SCAN: | ||
gda_name: | ||
P: | ||
TEMPSCAN: | ||
gda_desc: | ||
PORT: | ||
LOOP: | ||
ADDR: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Configuration for epics-containers | ||
================================== | ||
|
||
A collection of all the configuration points mentioned in the rest of this | ||
documentation. | ||
|
||
TODO: this needs completing - pull all configuration discussions into | ||
one place. Most of these will come from the original Setting up the | ||
Workspace document. | ||
|
||
|
||
Git Configuration | ||
----------------- | ||
|
||
.. code-block:: | ||
[url "ssh://[email protected]/"] | ||
insteadOf = https://github.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Recommended VSCode Settings | ||
=========================== | ||
|
||
I've picked a handful of my user settings which I think are useful for most | ||
people working on epics-containers. | ||
|
||
TODO: write up a description of why these are useful. Particularly with | ||
regards to auto discovery of git repos. | ||
|
||
.. code-block:: | ||
scm.repositories.visible: 10 | ||
git.repositoryScanMaxDepth: 0 | ||
git.openRepositoryInParentFolders: never | ||
files.trimTrailingWhitespace: true | ||
terminal.integrated.scrollback: 20000 | ||
dev.containers.defaultExtensions: [ | ||
"samuelcolvin.jinjahtml", | ||
"moshfeu.compare-folders", | ||
"GitHub.copilot", | ||
"charliermarsh.ruff", | ||
"Gruntfuggly.todo-tree", | ||
"streetsidesoftware.code-spell-checker", | ||
"eamodio.gitlens", | ||
"tamasfe.even-better-toml", | ||
"redhat.vscode-yaml", | ||
"ryanluker.vscode-coverage-gutters", | ||
"mhutchie.git-graph", | ||
"ms-vscode.makefile-tools" | ||
"peakchen90.open-html-in-browser", | ||
], | ||
"[yaml]": { | ||
"editor.defaultFormatter": "redhat.vscode-yaml" | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.