haquin wrote:
Hi,
I initialize the INPH (with macro substitution) of a gensub record
with a string,
but it is never transferred to the corresponding H variable ...
in the IOC shell I use the commands:
epics> dbgf MyGensub.INPH
DBR_STRING: MyString NPP NMS
epics> dbgf MyGensub.H
DBR_STRING:
The behaviour is different if I use LONG instead of STRING ...
Can someone tell me how to do retreive MyString in MyGensub.H ?
You can use a stringout record to hold the string, like so:
record(stringout, "myStringInit") {
field(VAL, "$(MYSTRINGMACRO)")
field(UDF, "0")
}
record(aSub, "myASub") {
....
field(INPH, "myStringInit")
....
}
Then, dbLoadRecords("myDatabase.db", "MYSTRINGMACRO=MyString")
--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group (www.aps.anl.gov/aod/bcda)
Advanced Photon Source, Argonne National Lab
- Replies:
- Re: can't initialize record field with string haquin
- References:
- can't initialize record field with string haquin
- Navigate by Date:
- Prev:
Re: macLib/msi changes with 3.14.10 Andrew Johnson
- Next:
Re: can't initialize record field with string haquin
- 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: can't initialize record field with string Burkhard Kolb
- Next:
Re: can't initialize record field with string haquin
- 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
|