Difference between revisions of "Ophyd"

From GISAXS
Jump to: navigation, search
Line 25: Line 25:
 
** [[CHX]] (Coherent Hard X-rays)
 
** [[CHX]] (Coherent Hard X-rays)
 
** [[CMS]] (Complex Materials Scattering)
 
** [[CMS]] (Complex Materials Scattering)
 +
 +
==See Also==
 +
* [https://github.com/NSLS-II/ophyd NSLS-II ophyd github]

Revision as of 12:15, 1 August 2015

ophyd is a Python-based interactive environment for instrument control at NSLS-II synchrotron beamlines.

Examples

  • Motors
    • wh_pos() : motor positions
    • mov(dcm_x, 1.0) : move motor
    • movr(dcm_x, -1.0) : relative motion
    • movr([dcm_x, dcm_y], [-1.0,-1.0]) : multiple motions
  • Scan
    • dscan.detectors : list
    • dscan(diff_xh, -1, 1, 25)
  • EPICS
    • Access PVs:
      • caget()
      • caput()
    • Epics signals
      • eiger1M_exposure_time = EpicsSignal('XF:11IDB-BI{Det:Eig1M}cam1:AcquireTime', rw=True, name='eiger1M_exposure_time')
  • Logging
    • grabit : screengrab, copied immediately to Olog notebook.
      • 'i' to enter interactive mode, type text, then to exit+save do 'Esc' then ':wq'.

Beamlines using ophyd

  • NSLS-II
    • CSX (Coherent Soft X-rays)
    • CHX (Coherent Hard X-rays)
    • CMS (Complex Materials Scattering)

See Also