EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: EPICS to Python / EPICS to Tcl
From: Timothy Madden <[email protected]>
To: [email protected]
Date: Mon, 04 Aug 2008 09:56:41 -0500
Folks

I want to make an IOC that does the following:

Serve PV's that call Asyn, They could BI, BO or any standard record.
Make an Asyn driver that is linked with a Python or Tcl interpreter. The IOC written in C, would then call scripts which could be stored as text files on the disk.


A record named "X" would call a script function named "X" and pass its PV value to it. Likewise, the output of the script could be passed back to the PV value. Python and Tcl interpreters provide ways for C to call scripts, pass and retrieve data from scripts. Also, it is not too hard to link an interpreter into a C program. All that is needed is to write the ASYN-based C functions that call the interpreter. It could be done in Linux or Cygwin.

In this way, one could make an IOC to do whatever one wanted without ever messing a C compiler. The user would write a few scripts, make a st.cmd file, and a db file. In this way, new IOCs could be very quickly developed.

Has anyone already done this?

Tim Madden


Replies:
Re: EPICS to Python / EPICS to Tcl Tim Mooney
RE: EPICS to Python / EPICS to Tcl Rowland, J (James)

Navigate by Date:
Prev: Bergoz LR-BPM Monitoring system for LINAC K.M Ha
Next: Re: EPICS to Python / EPICS to Tcl Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Bergoz LR-BPM Monitoring system for LINAC Solal
Next: Re: EPICS to Python / EPICS to Tcl Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024