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  2013  2014  2015  <20162017  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  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [CSS] Run script attached to an OPI file when a linking container at another OPI opens it
From: Isabella Stevani <[email protected]>
To: [email protected]
Date: Thu, 25 Aug 2016 16:26:41 -0300
Hello everyone,

I'm new at CS-Studio, so I hope that you guys can help me here.

I have a main OPI file (let's call it OPI1) with a linking container. Attach to OPI1, there's a python script defining the linking container's macros and reloading a second OPI (OPI2).

The syntax is like this:

# Get linking container widget
linking_container = display.getWidget("Linking Container Name")

# Defining macros
macros = DataUtil.createMacrosInput(True)
macros.put("macro1", "loc://macro1")
widget.setPropertyValue("macros", macros)

# Reloading OPI
linking_container.setPropertyValue("opi_file", "")
linking_container.setPropertyValue("opi_file", "OPI2.opi")

With this I successfully sat the macros for OPI2. But there's a different python script attached to OPI2 where I define each of its widgets' PVs, so I want this script to be execute when OPI2 is loaded by OPI1.

I've tried to triggered it by having as trigger PV a constant local pv and a macro, but it didn't work.

I've also tried the solution purposed on this link: https://github.com/ISISComputingGroup/ibex_developers_manual/wiki/CSS-programming-tips-and-limitations (Topic: Running a script on page load) but it didn't work too (frankly I don't know if I totally understand this solution, so maybe I'm implementing it wrong).

If anyone could help me with this problem, I'd be glad.

Cheers,

Isabella Stevani

Navigate by Date:
Prev: RE: Bio-Logic SP-300 Mark Rivers
Next: RE: Bio-Logic SP-300 freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Bio-Logic SP-300 Bruno Valdrighi Luvizotto
Next: OS X edm/medm openmotif woes Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 25 Aug 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·