________________________________
From: [email protected] on behalf of Timothy Madden
Sent: Mon 04/08/2008 15:56
To: [email protected]
Subject: EPICS to Python / EPICS to Tcl
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
<DIV><FONT size="1" color="gray">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
</FONT></DIV>