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: waveform of STRING memory structure
From: Pavel Masloff <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Fri, 1 Jun 2012 00:11:22 +0400
Hello,


How is a waveform of strings represented in memory? As an array of pointers to char? Or as NELM consecutive 40 byte chars? Or less than 40 (depending on the size of each waveform element).

This is what Kay suggests:

Not sure, but I would assume NELM consecutive 40 byte chars.
This is how the memory is allocated in the waveform record:

 prec->bptr = callocMustSucceed(prec->nelm, dbValueSize(prec->ftvl),
           "waveform calloc failed");

So it's one long area, and dbValueSize(STRING) is MAX_STRING_SIZE == 40.


Is it so?


--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01


Replies:
Re: waveform of STRING memory structure Andrew Johnson

Navigate by Date:
Prev: Re: Proposed change in asyn - request for comments Eric Norum
Next: Re: waveform of STRING memory structure 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: errro running "ibtest" Rod Nussbaumer
Next: Re: waveform of STRING memory structure 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 ·