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

Subject: FW: EDM: Text Monitor Widget
From: "Szalata, Zenon M." <[email protected]>
To: <[email protected]>
Date: Tue, 4 Aug 2009 21:56:59 -0700
Below is my message that I sent out a few days ago.  I did some more investigating and I am confused by what I found.
1. I have created a short ASCII coded string:
   "Line 0\n Line 1\n Line 2"
2. I used genSub to create this string.  It is in VALA field which is
   of type "CHAR" and length 100.
3. using caget I verify that the string in VALA is as it was created.
4. In EDM, I verify that pv->get_string() returns a string of characters,
   where each '\n' character is replaced with "(0A)" string.

So, it appears that this conversion is done probably in epicsPv .
I wonder why is it done this way?  What is the gain? 

Thanks,
Zen

-----Original Message-----
From: Szalata, Zenon M. 
Sent: Saturday, August 01, 2009 10:05 PM
To: [email protected]
Subject: EDM: Text Monitor Widget

I have an ASCII coded string which contains new line characters.  Effectively, the null terminated string contains a small number of "lines".  This string is formatted in genSub record and the output field in which the string is held is of type "CHAR" and of length n characters, long enough to hold the string.

When I display this string in an EDM Text Monitor widget, the new line characters are displayed as (0A) and the text that follows is not displayed on next line.  I was hoping that the new line character imbedded in a string would have the expected behavior.  In fact, Text Monitor, Text Update, and Text Control, all do the same thing with the new line character.

Is there a way in EDM to display such a string effectively as printf would?

I know that I could break up the string into separate lines of text, one per EPICS record, but that would end up with a lot of extra record and much extra work.  Besides, it would be difficult to handle a variable number of lines of text...

Thanks in advance,
Zen


Navigate by Date:
Prev: RE: CAJ questions Mark Rivers
Next: Re: CAJ questions Matej Sekoranja
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Text Monitor Widget Singleton, Steve (DLSLtd,RAL,DIA)
Next: Asyn R4.11 Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·