You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Status of Documents

DRAFT


Documentation

https://dls-controls.github.io/pythonSoftIOC/master/index.html

https://dls-controls.github.io/pythonSoftIOC/master/reference/api.html

https://docs.conda.io/projects/conda/en/23.1.x/user-guide/install/macos.html


Python SoftIOC with CONDA 

As with all Python projects, it is good practice to create a development environment in which to install all the libraries necessary for testing:

Procedure if you have CONDA

$ conda create --name <name_of_environment> python=3.8.13

$ conda activate epics

$ pip install cothread==2.20.0

$  pip install softioc==4.5.0

This is the minimal environment for operating a SoftIOC in Python.


Test SoftIOC with CS-Studio

To do tests on the IOC you can either use the terminal from which the IOC itself was launched, or you can use CS-Studio Phoebus.


1.Terminal

(epics) $ python test.py 

INFO: PVXS QSRV2 is loaded, permitted, and ENABLED.

Starting iocInit

############################################################################

## EPICS 7.0.7.0

## Rev. 7.0.7.99.0.2

## Rev. Date 7.0.7.99.0.2

############################################################################

iocRun: All initialization complete

Python 3.8.13 (default, Oct 19 2022, 17:54:22)

[Clang 12.0.0 ] on darwin

Type "help", "copyright", "credits" or "license" for more information.

(InteractiveConsole)

>>> dbl()

MY-DEVICE-PREFIX:AI

MY-DEVICE-PREFIX:AO


2.CS-Studio Phoebus

2.1.Install CS-Studio Phoebus

https://controlssoftware.sns.ornl.gov/css_phoebus/


2.2.Test SoftIOC with CS-Studio Phoebus

2.2.1 Open CS-Studio

2.2.2 From menu items "Application" > "Display" > "New Display"

2.2.3 Put on \[Edit] Display

2.2.4

2.2.5 Run SoftIOC

2.2.6 Run CSS Display → \[Edit] \[Run]




SoftIOC example code

..







  • No labels