Experimental Physics and
| |||||||||||||||||
|
On Mar 2, 2007, at 15:51 , Robert Emery wrote:
Hi: I don't think you can close another display via a related button. But for what you want to do, this might work: On one big display, you have a row of buttons on the top or along the left to select a sub display, then a big "embedded display" area using the rest of that display. So that "embedded window" shows your related screen within the original screen. The buttons can select which one. Detail: The embedded window gets configured to display one of a list of related displays within its window based on the value of a PV. The row of buttons of course writes 0, 1, 2, ... to that selector PV. The added trick: For that selector PV, you don't use a PV on an IOC, because that would mean that every instance of that screen would show the same embedded sub-display. Instead, you use a local EDM PV, local to your display instance. Syntax for that PV: \LOC\$(!W)MySubSelector=i:0 The idea behind this mad looking PV: \LOC\ means local, not ChannelAccess $(!W) gets replaced by the window ID, so this creates a unique PV =i:0 creates an integer, initialized with 0 The message buttons use the same "\LOC\$(!W)MySubSelector=i:0" and write 0, 1, 2, 3, .... I always get confused about the "i:0": Whichever widget happens to get initialized first will create the integer PV with value 0. On subsequent use, the "=i:0" is really ignored.
| ||||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |