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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: EPICS to Python / EPICS to Tcl |
From: | Tim Mooney <[email protected]> |
To: | Timothy Madden <[email protected]> |
Cc: | [email protected] |
Date: | Mon, 04 Aug 2008 11:35:40 -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
-- Tim Mooney ([email protected]) (630)252-5417 Beamline Controls & Data Acquisition Group (www.aps.anl.gov/aod/bcda) Advanced Photon Source, Argonne National Lab