Skip to content

Issue: RF plant definitions #64

@gubaidulinvadim

Description

@gubaidulinvadim

@JeanLucPons, I'm trying to manually configure rf plant for our digital twin. Currently, this is not possible.

  - type: pyaml.rf.rf_plant
    name: RF
    masterclock:
      type: tango.pyaml.attribute
      attribute: simulator/ringsimulator/ringsimulator/RfFrequency
      unit: Hz

I did a dirty solution in my local branch in control.controlsystem and in lattice.simulator:

             if e._cfg.transmitters:
                 for t in e._cfg.transmitters:
                    voltage = RWRFVoltageScalar(t)
                    phase = RWRFPhaseScalar(t)
                    nt = t.attach(self,voltage,phase)
                    self.add_rf_transnmitter(nt)
                    attachedTrans.append(nt)

I'm not entirely sure this is needed for pyAML to define only the masterclock. But for tests this is very useful to not define the whole rf plant.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions