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

Subject: RE: CSS/BOY macro substitution problem
From: "Chen, Xihui" <chenx1@ornl.gov>
To: Paweł Prędki <ppredki@dmcs.pl>, TechTalk <tech-talk@aps.anl.gov>
Date: Thu, 05 Aug 2010 09:43:00 -0400
Hi Pawel,

>I've started using the CSS ennvironment and BOY for creating GUIs but
>I've come across a problem with macro substitution.

Thanks for using BOY and ask the questions!

>I'm creating a GUI for a data acquisition system which consists of
>several DAQ boards. My aim is to have only one XY graph visible at once
>on the screen and be able to switch between them using, for example,
>action buttons.

There may be other options which can make this task easier: using Tab widget or change the pv name of a trace from action button via script.

>However, when I specify the macro value for the whole display I am not able to change
>it using the action buttons. Somehow, the display macro value definition
>trumps the one given by the action button.

The macros property cannot be changed via script during runtime. It is only loaded once during opi startup. The display macros will replace the same one from its parents.

>The only way I was able to make it work was not specifying any display
>macro value. This, however, results in an ugly first screen where all
>the controls are disconnected since the macro is undefined. Clicking one
>of the action buttons connects to the correct card.

Still cannot understand that clearly. Could you send me the opi files?

Thanks,
Xihui

References:
CSS/BOY macro substitution problem PaweÅ PrÄdki

Navigate by Date:
Prev: Problem with streamDevice and I/O Intr Florian Feldbauer
Next: RE: CSS/BOY macro substitution problem Chen, Xihui
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: CSS/BOY macro substitution problem PaweÅ PrÄdki
Next: RE: CSS/BOY macro substitution problem Chen, Xihui
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·