Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: can't initialize record field with string
From: Andrew Johnson <anj@aps.anl.gov>
To: haquin <haquin@ganil.fr>
Cc: tech-talk@aps.anl.gov
Date: Tue, 27 Oct 2009 12:21:16 -0500
Hi Christophe,

On Tuesday 27 October 2009 10:38:06 haquin wrote:
>
> But can you still answer the following questions:
> - is it possible to initialize an array with a MACRO (be it numeric or
> string) ? - is it possible to initialize a string array from the startup
> script using dbpf command or else ?

No, it is not currently possible to initialize array fields before iocInit 
(that includes using dbLoadRecords), since the memory to store the array data 
is not allocated until the record initialization takes place.  The best 
suggestion the community has for doing this is to use an autosave/restore 
program to set the array during the IOC start-up.  That could also be used to 
set string fields.

- Andrew
-- 
The best FOSS code is written to be read by other humans -- Harald Welte


References:
can't initialize record field with string haquin
Re: can't initialize record field with string Andrew Johnson
Re: can't initialize record field with string haquin

Navigate by Date:
Prev: Re: can't initialize record field with string haquin
Next: Re: can't initialize record field with string Bruce Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: can't initialize record field with string haquin
Next: Re: can't initialize record field with string Bruce Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·