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  2014  2015  2016  2017  <20182019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
<== Date ==> <== Thread ==>

Subject: Re: medm color map question
From: "Wang Xiaoqiang (PSI)" <xiaoqiang.wang@psi.ch>
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 17 Oct 2018 16:45:35 +0000

https://github.com/epics-extensions/medm/blob/master/medm/medmCommon.c

In the above source the dl_color is marked as old. Might be this adl file is created by an older medm?

Sent from my iPhone

On 17 Oct 2018, at 18:26, Mark Rivers <rivers@cars.uchicago.edu> wrote:

Folks,

 

Most medm adl files I have seen have color map definitions that look like this:

 

"color map" {

        ncolors=65

        colors {

                ffffff,

                ececec,

                dadada,

                c8c8c8,

                bbbbbb,

                aeaeae,

                9e9e9e,

                919191,

                858585,

                787878,

                696969,

                5a5a5a,

                464646,

                2d2d2d,

                000000,

                00d800,

                1ebb00,

 

However, some have color maps that look like this:

"color map" {

        ncolors=65

        dl_color {

                r=255

                g=255

                b=255

                inten=255

        }

        dl_color {

                r=236

                g=236

                b=236

                inten=0

        }

        dl_color {

                r=218

                g=218

                b=218

                inten=0

        }

        dl_color {

                r=200

                g=200

                b=200

                inten=0

        }

        dl_color {

                r=187

                g=187

                b=187

                inten=0

        }

        dl_color {

                r=174

                g=174

                b=174

                inten=0

        }

 

 

The adl2edl program does not handle color maps in the second format.  Can anyone tell me what causes medm to use one format vs the other, and is there a way to convert color maps in the second format to be in the first format?

 

Thanks,

Mark

 

 

 


References:
medm color map question Mark Rivers

Navigate by Date:
Prev: medm color map question Mark Rivers
Next: Re: medm color map question Johnson, Andrew N.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
Navigate by Thread:
Prev: medm color map question Mark Rivers
Next: Re: medm color map question Johnson, Andrew N.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
ANJ, 17 Oct 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·