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

Subject: RE: CSS BOY Dynamic Strip Charts with Macros
From: "Chen, Xihui" <[email protected]>
To: ALEXANDER DUNN <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 1 Aug 2012 13:59:22 -0400

There is link on SNS CSS News page: http://ics-web.sns.ornl.gov/css/news.html and Google+ page: https://plus.google.com/u/0/101349549663920375487/posts Just follow us to get updates!

 

Cheers,
Xihui

 

 

From: ALEXANDER DUNN [mailto:[email protected]]
Sent: Wednesday, August 01, 2012 1:54 PM
To: Chen, Xihui
Cc: Alex Dunn; [email protected]
Subject: Re: CSS BOY Dynamic Strip Charts with Macros

 

Thank you Xihui,

I had 3.1.1 installed, but I just discovered that my link was sending me to an old version.  Now I can see the visibility options. 

The change log is very helpful.  Consider linking to it on the Sourceforge homepage.

Thanks,
Alex


On 01 Aug, 2012,at 12:16 PM, "Chen, Xihui" <[email protected]> wrote:

Hi Alex,

 

In the latest EPICS_CSS 3.1.1 from SNS, I just added a “Visible” property to every trace. Please see http://cs-studio.hg.sourceforge.net/hgweb/cs-studio/cs-studio-3.1/raw-file/tip/applications/plugins/org.csstudio.opibuilder/html/ChangeLog.html  It is also available in rule dialog, for example trace_0_visible. If you are using CSS  EPICS 3.1.1, Please reinstall your BOY Examples and see widgets->2_5_2_XY_Graph.opi.

 

Thanks,
Xihui

 

 

From: Alex Dunn [mailto:[email protected]]
Sent: Wednesday, August 01, 2012 11:09 AM
To: Kasemir, Kay
Cc: [email protected]
Subject: Re: CSS BOY Dynamic Strip Charts with Macros

 

Good idea.  What version of CSS BOY are you using?  I'm using SNS CSS Basic EPICS 3.1.1, but I don't see a trace visibility option either in the Property window or in the drop-down box of widget options in the rules editor. 

Thanks,
Alex

On 01 Aug, 2012,at 07:58 AM, "Kasemir, Kay" <[email protected]> wrote:

I believe there's Option 5:
Create an XYGraph with all 4 channels, then change the visibility of those individual traces.
A rule connected to the PV of a combo box could decide which trace is visible.

Visibility has only been added recently to the XYGraph, so you'll have to get the latest.

Thanks,
-Kay

From: Alex Dunn <[email protected]<mailto:[email protected]>>
Date: Tuesday, July 31, 2012 17:17
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Subject: CSS BOY Dynamic Strip Charts with Macros

There are 4 channels of data, but I want only one XYGraph on screen. To flip through the channels on this single strip chart, I thought of several options.

PV's are named in the fashion $(TS)STATS0:S$(CH)_ampl
$(CH) takes values 1,2,3,4 to indicate the 4 channels.

The .opi I am working on can be downloaded here<https://raw.github.com/kienjakenobi/storage/master/css-boy/front.opi>.

Option 1
Use a combo box to change the value of $(CH) for each combo box selection. This will not work because it is explained here<http://www.aps.anl.gov/epics/tech-talk/2010/msg01036.php> that, "the macros property cannot be changed via script during runtime. It is only loaded once during opi startup."

Option 2
Create a different .opi file for each channel. The channel number is then hardcoded into each PV of each widget in each .opi. This is extremely inelegant and very hard to maintain.

Option 3
Use rules to change the PV of the strip chart. See a screenshot of my rules setup here<https://github.com/kienjakenobi/storage/raw/master/css-boy/rules.png>. This works if I remove $(TS) from the output _expression_ of the rule. It appears that rule output expressions do not evaluate macros. This can be seen here<https://github.com/kienjakenobi/storage/raw/master/css-boy/unresolved-pv.png>, where I ran the .opi and right clicked --> PV Info. You can see "$(TS)" in the PV's name. If correctly substituted, this should say whatever value I have $(TS) set at. I have $(TS) defined both in my global preferences and on my root grouping container. Unless I have made a mistake that is preventing macro evaluation, this will not work because there must be at least the $(TS) macro on every PV.

Option 4
Use an action to reopen the same .opi with $(CH) redefiend. This works, but not with a single combo box. I do not see how to assign a different action to each item of a combo box. Hence, I must use one action button for each channel. Furthermore, this inefficiently reloads the entire screen and has the negative side effect of wiping the history of the strip chart. However, this is the only usable solution at the moment.

Also note that the strip chart plots 4 PVs, and there are other widgets which must also respond to the change in channel selection. Hence, any solution must be capable of handling both macros and multiple PV changes.

Thank you,
Alex


References:
RE: CSS BOY Dynamic Strip Charts with Macros Chen, Xihui

Navigate by Date:
Prev: Re: CSS BOY Dynamic Strip Charts with Macros Alex Dunn
Next: Camac TMA 3112 documentation? Mike Westfall
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: CSS BOY Dynamic Strip Charts with Macros Chen, Xihui
Next: Re: CSS BOY Dynamic Strip Charts with Macros Alex Dunn
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·