EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: aSub record : adding arguments
From: Kate Feng <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 14 Sep 2012 10:07:01 -0400
Hi all,

Adding arguemnts to the aSub record would facilitate the usage of the subroutine to be more globally generic and versatile. The arguments will be used for the subroutine. For example, I modified the file src/rec/aSubRecord.dbd as the following to achieve the goal in my project. I wish that the addition of the arguments in aSub record could be considered in the EPICS 3.14.x branch in addition to the higher one such as 3.15.
Any pointer regarding what I missed or any consideration ?

diff -Naur  aSubRecord.dbd.orig aSubRecord.dbd

--- aSubRecord.dbd.orig    2011-04-26 16:40:09.000000000 -0400
+++ aSubRecord.dbd    2012-09-14 09:38:24.086888851 -0400
@@ -11,6 +11,28 @@

 recordtype(aSub) {
     include "dbCommon.dbd"
+# ARG1,ARG2,ARG3,and ARG4 added on 9/10/12
+    field(ARG1,DBF_ULONG) {
+        prompt("Subroutine Argument1")
+        promptgroup(GUI_CONVERT)
+        pp(TRUE)
+    }
+    field(ARG2,DBF_ULONG) {
+        prompt("Subroutine Argument2")
+        promptgroup(GUI_CONVERT)
+        pp(TRUE)
+    }
+    field(ARG3,DBF_ULONG) {
+        prompt("Subroutine Argument3")
+        promptgroup(GUI_CONVERT)
+        pp(TRUE)
+    }
+    field(ARG4,DBF_ULONG) {
+        prompt("Subroutine Argument4")
+        promptgroup(GUI_CONVERT)
+        pp(TRUE)
+    }
+# end of ARG1,ARG2,ARG3,and ARG4 add on
     field(VAL,DBF_LONG) {
         prompt("Subr. return value")
         asl(ASL0)



Thanks,
Kate Feng

Replies:
Re: aSub record : adding arguments Andrew Johnson

Navigate by Date:
Prev: Re: access record info from asyn Hinko Kocevar
Next: Re: waveform changes using subArray Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Installing MEDM on UBUNTU 10.04.1 LTS x64 Pete R. Jemian
Next: Re: aSub record : adding arguments Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·