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.