Skip to content

fix typos in ioc_changes2 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2024
Merged
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
30 changes: 15 additions & 15 deletions docs/user/tutorials/ioc_changes2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,33 +126,33 @@ Now run the IOC:
You should see an iocShell prompt and no error messages above.

Let us also make sure we can see the simulation images that the IOC is
producing. For this we need the ``cd2v`` tool that we used earlier. You
producing. For this we need the ``c2dv`` tool that we used earlier. You
can use the same virtual environment that you created earlier, or create
a new one and install again. Note that these commands are to be run
in a terminal outside of the developer container.

.. code-block:: console

python3 -m venv cd2v
source ~/cd2v/bin/activate
python3 -m venv c2dv
source ~/c2dv/bin/activate
pip install c2dataviewer

Run the ``cd2v`` tool and connect it to our IOCs PVA output:
Run the ``c2dv`` tool and connect it to our IOCs PVA output:

.. code-block:: console

cd2v --pv BL01T-EA-TST-02:PVA:OUTPUT &
c2dv --pv BL01T-EA-TST-03:PVA:OUTPUT &


Back inside the developer container, you can now start the detector and
the PVA plugin, by opening a new terminal and running the following:

.. code-block:: console

caput BL01T-EA-TST-02:PVA:EnableCallbacks 1
caput BL01T-EA-TST-02:CAM:Acquire 1
caput BL01T-EA-TST-03:PVA:EnableCallbacks 1
caput BL01T-EA-TST-03:CAM:Acquire 1

You should see the moving image in the ``cd2v`` window. We now have a working
You should see the moving image in the ``c2dv`` window. We now have a working
IOC instance that we can use to test our changes.

Making a change to the Generic IOC
Expand All @@ -168,8 +168,8 @@ YAML file. We will change the startup script that it generates so that the
simulation detector is automatically started when the IOC starts.

To make this change we just need to have the startup script set the values
of the records ``BL01T-EA-TST-02:CAM:Acquire`` and
``BL01T-EA-TST-02:PVA:EnableCallbacks`` to 1.
of the records ``BL01T-EA-TST-03:CAM:Acquire`` and
``BL01T-EA-TST-03:PVA:EnableCallbacks`` to 1.

To make this change, open the file
``ibek-support/ADSimDetector/ADSimDetector.ibek.support.yaml``
Expand Down Expand Up @@ -199,13 +199,13 @@ following output at the end of the startup log:

.. code-block:: console

dbpf BL01T-EA-TST-02:CAM:Acquire 1
dbpf BL01T-EA-TST-03:CAM:Acquire 1
DBF_STRING: "Acquire"
dbpf BL01T-EA-TST-02:PVA:EnableCallbacks 1
dbpf BL01T-EA-TST-03:PVA:EnableCallbacks 1
DBF_STRING: "Enable"
epics>

You should also see the ``cd2v`` window update with the moving image again.
You should also see the ``c2dv`` window update with the moving image again.

If you wanted to publish these changes you would have to commit both the
``ibek-support`` submodule and the ``ioc-adsimdetector`` repository and push
Expand Down Expand Up @@ -234,11 +234,11 @@ Add the following to
.. code-block:: yaml

- type: epics.dbpf
pv: BL01T-EA-TST-02:CAM:Acquire
pv: BL01T-EA-TST-03:CAM:Acquire
value: "1"

- type: epics.dbpf
pv: BL01T-EA-TST-02:PVA:EnableCallbacks
pv: BL01T-EA-TST-03:PVA:EnableCallbacks
value: "1"

Now restart the IOC and you should see the same behaviour as before. Here
Expand Down