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  <20132014  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  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: CSS Boy - creating OPI files with parameters
From: "Chen, Xihui" <[email protected]>
To: Vítek Michal <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 7 Mar 2013 10:33:48 -0500
Hi Mike,

>I would like to create a panel to be used with IO device with many channels. I am now wondering if there is a way how to set PV to widgets like parameters (e.g. to set PVs to $device:DIO:$port_$channel and then set those parameters/variables in some startup scrip or Java code common for the whole panel? Or is there other recommanded way how to do that?

You can use macros with linking container. See BOY Examples->widgets->4_2_LinkingContainer.opi. Further, if you want to dynamic set the macros (for examples, from config file) and create the linking container on the fly, see BOY Examples\Miscellaneous\DynamicLoadWidgets\LoadWidgetsExample.opi

>I am also wandering if there is a way how to trigger a script associated with the widget by an action not related to the PV (e.g. I would like to change color of a widget if a button is pressed)?

You can execute a script from widget action. See \BOY Examples\4_Actions_2.opi


>I have just started with BOY so my question is probably stupid, but I was not able to find a solution in a documentation I have read so far..

Any question with BOY is good question! The most useful documents I think are BOY Example, online help and some tutorials at https://sourceforge.net/apps/trac/cs-studio/wiki/BOY


Cheers,
Xihui


References:
CSS Boy - creating OPI files with parameters Vítek Michal

Navigate by Date:
Prev: Re: RTEMS-beatnik(MVME6100) network initialize error? Till Straumann
Next: Re: RTEMS-beatnik(MVME6100) network initialize error? Feng Laurence
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CSS Boy - creating OPI files with parameters Ralph Lange
Next: Record support for binary serial communications? Westfall, Michael D
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·