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

Compare with Current View Page History

« Previous Version 2 Current »

From a machine on the SLAC network (like centos7.slac.stanford.edu), ssh into pc101221 using your unix username and password.


Source the conda environment that will give you access to all relevant python packages


source /home/jesseb/conda/rl-env/bin/activate


Then source this setup script to set the environment variables needed to get read only access to live EPICS PVs, as well as write access to a much smaller subset


$ source /home/jesseb/setup/set-env.sh


In order to write PVs using secure EPICS, the p4p python package should be used. This client has been built to use secure EPICS, the following example shows a put to an approved PV:


$ python
Python 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:50:21) 
[GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from p4p.client.thread import Context
>>> ctxt = Context('pva')
>>> ctxt.put('LUME:OTRS:IN20:571:XRMS', 2345)
>>> ctxt.get('LUME:OTRS:IN20:571:XRMS')
2345.0
>>> 

  • No labels