Skip to content

Commit

Permalink
Merge pull request #87 from evalott100/add_readme
Browse files Browse the repository at this point in the history
Added basic README.rst
  • Loading branch information
evalott100 authored Dec 19, 2023
2 parents 01d4cd3 + 6d9ec07 commit f9efa39
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ PandABlocks-ioc

|code_ci| |docs_ci| |coverage| |pypi_version| |license|

.. note::

This project contains template code only. For documentation on how to
adopt this skeleton project see
https://DiamondLightSource.github.io/python3-pip-skeleton-cli

This is where you should write a short paragraph that describes what your module does,
how it does it, and why people should use it.
A softioc to control a `PandABlocks-FPGA <https://github.com/PandABlocks/PandABlocks-FPGA>`_.

============== ==============================================================
PyPI ``pip install PandABlocks-ioc``
Expand All @@ -19,19 +12,33 @@ Documentation https://PandABlocks.github.io/PandABlocks-ioc
Releases https://github.com/PandABlocks/PandABlocks-ioc/releases
============== ==============================================================

This is where you should put some images or code snippets that illustrate
some relevant examples. If it is a library then you might put some
introductory code here:
To run the ioc:

.. code-block:: text
$ python -m pandablocks-ioc softioc <pandabox host> <pv prefix> --screens-dir=<directory to output bobfiles> --clear-bobfiles
|
PVs will be available for all the values shown on the `web client <https://github.com/PandABlocks/PandABlocks-webcontrol>`_:

.. code-block:: text
$ caget PANDA:CALC1:INPA
PANDA:CALC1:INPA ZERO
.. code-block:: python
.. image:: https://raw.githubusercontent.com/PandABlocks/PandABlocks-ioc/main/docs/images/webui_calc1.png
:width: 300

from pandablocks_ioc import __version__
|
print(f"Hello pandablocks_ioc {__version__}")
On start-up the ioc will use `PVI <https://github.com/epics-containers/pvi>`_ to generate bobfiles for viewing the PVs in phoebus:

Or if it is a commandline tool then you might put some example commands here::
.. image:: https://raw.githubusercontent.com/PandABlocks/PandABlocks-ioc/main/docs/images/phoebus_calc1.png
:width: 34%
.. image:: https://raw.githubusercontent.com/PandABlocks/PandABlocks-ioc/main/docs/images/screen_index.png
:width: 64%

$ python -m pandablocks_ioc --version

.. |code_ci| image:: https://github.com/PandABlocks/PandABlocks-ioc/actions/workflows/code.yml/badge.svg?branch=main
:target: https://github.com/PandABlocks/PandABlocks-ioc/actions/workflows/code.yml
Expand Down
Binary file added docs/images/phoebus_calc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/screen_index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/webui_calc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f9efa39

Please sign in to comment.