Examples

Get the pv value from the quad elements

  • Enter IPpython::

    $ ipython

  • Import ‘pml’

    >>> import pml
    
  • Initialize the VMX mode

    >>> lattice = pml.load_csv.load('/home/cxa78676/pml/pml/data/', 'VMX', epics.cs.EpicsControlSystem())
    
  • Get the Quad elements

    >>> quads = lattice.get_elements('QUAD')
    
  • Print the values of the readback pvs on the b1 field

    >>> for quad in quads:
    >>>    print(quad.get_pv_value('b1', 'readback'))