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: RE: Text Monitor Widget
From: "Singleton, Steve (DLSLtd,RAL,DIA)" <[email protected]>
To: "Szalata, Zenon M." <[email protected]>
Cc: [email protected]
Date: Mon, 10 Aug 2009 10:58:24 +0100
At Diamond we have a requirement for a text monitor/update widget that
handles strings of more than 40 characters, spread over several lines.
To provide this I implemented a multi-line text update widget that takes
its input from a text string in a waveform record instead of a stringin
or stringout.  Long lines are split at spaces, and "\n" characters are
handled correctly.  This widget can be found in the standard EDM
distribution, in the diamondlib directory.  I hope it is of use to you.

Regards
Steve Singleton   

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Szalata, Zenon M.
Sent: 02 August 2009 06:05
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

-- 
Scanned by iCritical.


References:
EDM: Text Monitor Widget Szalata, Zenon M.

Navigate by Date:
Prev: RE: Roper Quad-RO locks up with areaDetector/ccd apps Mark Rivers
Next: Re: Roper Quad-RO locks up with areaDetector/ccd apps tieman
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: EDM: Text Monitor Widget Szalata, Zenon M.
Next: FW: EDM: Text Monitor Widget 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 ·