There are atleast 3+ libraries out there.
There are a multi-threaded one from KEK. (import ca)
it works but docs are a bit sketchy - I have some notes somewhere.
Then there is another non-threaded one. from FNAL I think.
Good docs on this one. Don't think it's multi-threaded though.
I think that's the two on the EPICs web-site (look under extensions)
Then there is one from Newville (import epicsca)
nice documentation. non-multithreaded.
http://cars9.uchicago.edu/~newville/Epics/Python/
I have a library that runs python inside the IOC (embedded)
it includes CA capability also.
Is in Beta stages. (will move CA part out to seperate library some time)
Is kind off specialized. I think one of the above ones will work for you.
And I'm sure there's more out there.
I guess making a python library is not all that difficult.
Emmanuel Mayssat wrote:
Does anyone of you have a channel access library for python?
--
Emmanuel
On Wed, 2007-09-12 at 09:23 +0900, Noboru Yamamoto wrote:
Hi, Hinrichi:
Very interesting.
Actually, I have experimented similar approach called devPy.
You can use Python to interface your device to EPICS.
It does not uses ASYN and just have AI/AO and WF device support
routines.ãAnd I found it is still usefull.
I will definitely look at your code.
Regards,
Noboru
Heinrich du Toit wrote:
Hi there
I've started a project that allows me to run an embedded python script
inside an IOC using an ASYN driver.
This allows you to setup (standard) records that using ASYN will call
python functions (inside classes) directly.
It's a multi-threaded environment.
You can use any channel access library available for python.
It's already in working version - but is still alpha - ie. it needs
work.
If your interested download svn source:
svn co
http://epicstlabs.svn.sourceforge.net/svnroot/epicstlabs/pythonioc
pythonioc
(in one line!)
If you want to help develop - just sent me an email with your
sourceforge username.
If your not interested - well delete this email :P
cherios
-Heinrich
- References:
- embedded python :) Heinrich du Toit
- Re: embedded python :) Noboru Yamamoto
- Navigate by Date:
- Prev:
Re: asynGpib:srqPoll srqStatus is 1 after ntrys 5 Why? Steven Hartman
- Next:
250kV ION source control Heinrich du Toit
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: embedded python :) Noboru Yamamoto
- Next:
EPICS presentation & demo Heinrich du Toit
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|