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: Re: waveform of STRING memory structure
From: Andrew Johnson <[email protected]>
To: Pavel Masloff <[email protected]>
Cc: [email protected]
Date: Thu, 31 May 2012 16:08:43 -0500
Hi Pavel,

On 2012-05-31 Pavel Masloff wrote:
> How do clients (IOC subroutines) treat strings which are less than NELM,
> there will obviously be white spaces (or how is a waveform initialized?)

Each individual 40-character string in the array is supposed to have a 
terminating 0 byte, although CA may transport all 40 bytes.  Clients should be 
prepared to handle values that fill all 40 characters and should terminate the 
string after the 40th character if necessary.  Since we use calloc() to 
allocate the buffer all elements should start out empty.

Is that what you were asking?

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
Re: waveform of STRING memory structure Pavel Masloff
References:
waveform of STRING memory structure Pavel Masloff
Re: waveform of STRING memory structure Andrew Johnson
Re: waveform of STRING memory structure Pavel Masloff

Navigate by Date:
Prev: Re: waveform of STRING memory structure Pavel Masloff
Next: Re: Proposed change in asyn - request for comments Bruce Hill
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: waveform of STRING memory structure Pavel Masloff
Next: Re: waveform of STRING memory structure Pavel Masloff
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 ·