Quick Reference: Device Access with Python
Before you start: ALL MODIFICATIONS OF BEAM AFFECTING PROPERTIES HAVE TO GO THROUGH THE LSA SYSTEM!
That beeing said, for development and debugging it might be necessary to inspect device properties and the described python tools are helpfull in this respect.
Using the PropHelper (GUI)
Prophelper is a graphical tool written in Python, provided and maintained by the FrontEnd
group. It can be used to read in an easy way properties from a DeviceAccess
device. An introduction is available in the FE Wiki: https://www-acc.gsi.de/wiki/Frontend/PythonPropHelperIntro
Using the devscr (programmatically)
If you want to access the devices programmatically you can use the 'devscr' framework, this framework is also used internally by the PropHelper
Using Device Access (obsolete)
The following example shows, how to read information from a device using device access with python.
First, some environment variables have to be set. This is done by calling:
Then, device access can be used by calling:
- 06 Jan 2015
- 12 Nov 2014
- 23 Oct 2013
- 02 Aug 2013
- 30 Mar 2011