Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract DPEs that are instantiated from mixed design/config servers #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Benkendorfer
Copy link

@Benkendorfer Benkendorfer commented Jul 17, 2024

Previously, there were options to run Cacophony over servers that are purely instantiated from design, and servers that are purely instantiated from config. This PR adds logic to handle the case where some configuration-instantiated objects

The change was based originally from tag until_quasar_1.5.12

Addresses corresponding issue https://its.cern.ch/jira/browse/OPCUA-3178

@Benkendorfer Benkendorfer marked this pull request as ready for review August 14, 2024 07:06
Copy link
Collaborator

@parasxos parasxos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give an example where calling configureFromNameManager() is going to be used in iTK?

templates/designToConfigParser.jinja Outdated Show resolved Hide resolved
templates/designToConfigParser.jinja Outdated Show resolved Hide resolved
templates/designToConfigParser.jinja Outdated Show resolved Hide resolved
templates/designToConfigParser.jinja Outdated Show resolved Hide resolved
@Benkendorfer
Copy link
Author

Can you give an example where calling configureFromNameManager() is going to be used in iTK?

One example: every AMAC chip has 4 GaNFETs to control different high-voltage channels. We would like to model each switch as its own object in the OPC server. They should be children of AMAC objects --- the AMAC objects are configuration-instantiated. However, the switch objects are identical across AMACs, and can therefore be design-instantiated.

Benkendorfer and others added 4 commits October 11, 2024 20:30
Previously, if a configuration-instantiated object had
children that were instantiated from design, Cacophony
would not generate any code to parse those children.
This commit updates the `designToConfigParser` template
to parse design-instantiated children of
configuration-instantiated objects.

It does so by separating the XML-dependent part of
DPE creation from the XML-independent part, and parsing
the design for the XML-independent part.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants