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
<2012>
2013
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
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|