g+
g+ Communities
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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: waveform of STRING memory structure
From: Pavel Masloff <pavel.masloff@gmail.com>
To: Andrew Johnson <anj@aps.anl.gov>
Cc: tech-talk@aps.anl.gov
Date: Fri, 1 Jun 2012 11:41:05 +0400
Aha, I see. How does the terminating 0 byte look like? Like char c=0; ?

Does CSS BOY read the terminating 0 byte in a waveform of char?

On Fri, Jun 1, 2012 at 1:08 AM, Andrew Johnson <anj@aps.anl.gov> wrote:
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



--
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


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

Navigate by Date:
Prev: Re: Proposed change in asyn - request for comments Bruce Hill
Next: asynManager isConnected matthew.pearson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: waveform of STRING memory structure Andrew Johnson
Next: asynManager isConnected matthew.pearson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·