Skip to content

Feature: add control system access to pyAML elements #44

@GamelinAl

Description

@GamelinAl

Description, motivation and use case
For each relevant type of pyAML element, we should provide a shortcut access the the underneath python control system layer (e.g., pyTango/pyEPICS).

Use case: I can easily find BPM.145 using pyAML interface, I use the shortcut access to control system to modify the BPM electronic board configuration (which is not accessible at pyAML level).

Proposed solution
Provide a standard way to access the control system object/properties via its pyAML element:

  • Element.cs_object would return the object Tango device, i.e. a DeviceProxy object (AN20-AR/EM/OH.04-CQLN.22) or corresponding EPCIS PV.

I considered if we needed a direct access to the CS attribute (AN20-AR/EM/OH.04-CQLN.22/strength) directly but I don't see the point (at least for Tango) because it's the property that we already link with pyAML.

Example
Sextupole.cs_object returns a tango.DeviceProxy: Magnet(an20-ar/em/sext.12)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions