Experimental Physics and
| |||||||||||||||
|
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
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |