This product is available via an open source license
This describes four Python examples that use pvDatabase records.
The first is: PY_NTNDA_Viewer
The second is: qtimage
The third is: mandelbrot
The last is: plot2dcurve
Each example uses numpyImage. This has python documentation. To see it go to directory testPython/numpyImage and then enter:
ipython import sys sys.path.append('./numpyImage/') from numpyImage import NumpyImage help(NumpyImage)
The database used by the last three examples is: database
The examples are designed with the following goals:
numpy documentation is available at: scipy
QImage documentation is available at: QImage
Python3 is required as well as using pip to install the following:
numpy PyQt5 PyQt5-sip QtPy p4p pvapy
An EPICS7 release is required. See: EPICS7
After EPICS7 has been built then in any directory you choose execute the following
git clone https://github.com/mrkraimer/testPython.git cd testPython/database cp ExampleRELEASE.local RELEASE.local EDIT RELEASE.local SEE BELOW make cd iocBoot/testPython ../../bin/linux-x86_64/testPython st.cmd
You are now ready to run the examples
RELEASE.local must be changed so that the definition of EPICS7_DIR is the location where You built EPICS7.
Assuming you have sucessfully completed installation You are ready to run the examples.
Enjoy!!