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  2012  2013  <20142015  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  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Using a Waveform record (char type representing a String) as input to an aSub record
From: David Michel <[email protected]>
To: EPICS mailing list <[email protected]>
Date: Mon, 10 Mar 2014 16:27:39 +0000
Hi All,

I'm using a Waveform record of type char to represent a string (not using a  Stringin or Stringout record since this string has more than 40 characters).

That works well and I can easily put a string into this record such with caput -a and read it back with caget -s

Now, I need to use this string in an aSub record but I'm having difficulties in doing so.

char ** myString;
myString = (char **) precord->a;
printf("%s\n",myString);

The results of the printf statement shows only the first character of the string in ASCII.

Any idea of I can solve this?

Many thanks
David

Replies:
Re: Using a Waveform record (char type representing a String) as input to an aSub record Andrew Johnson
Re: Using a Waveform record (char type representing a String) as input to an aSub record Eric Norum

Navigate by Date:
Prev: Re: MAXv model-3 - error reading axis position after 5 attempts Jens Eden
Next: Re: Using a Waveform record (char type representing a String) as input to an aSub record Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: SIS3820 firmware enhancement proposal Mark Rivers
Next: Re: Using a Waveform record (char type representing a String) as input to an aSub record Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·