Contacts
Local contacts
Collaborators
Phonebook
Useful numbers
Links
Research
Highlights
Publications
Conferences
Image gallery
Users' area
Submitting a proposal
Sample suitability
Beamtime schedule
Shipping goods
Access request
Retrieving data
Manuals
Troubleshooting
Beamline procedures
Microscope procedures
Acquisition software
Data analysis
Spare lists
 
last update 15/02/2010
about | disclaimer

 Running Umeasure macros 

Using Umeasure
Startup
Umeasure basic usage
Running macros
Troubleshooting
  Installation instructions
Computer set-up
Installing LEEM2000 and UView2002
Installing UMeasure
Installing BCSJava

MACROS

The most powerful feature of Umeasure is its ability to run custom macros. By controlling the beamline, the microscope and the CCD, as well as other instruments, it is possible to remote control an experiment to your desire, and perform very complex tasks. The macro language is Jython, the "Java" version of Python. This approach guarantees high flexibily, enabling us to quickly and easily develop complex macros for user experiments. Several macros have been written through the years. They can be used to perform any routine measurement.

The microscope and beamline are controlled from Jython using Java classes (Operations.java and BeamlineOperations.java). For convenience of use, the classes API can be accessed from here:

Beamline Operations API;
Operations API


RUNNING MACROS

In order to run a macro, go to the acquire menu, and select "Macro/.../YOURMACRO" as illustrated in the example below:

macromenu


ABORTING MACROS

In order to stop a macro before acquisition is completed, go to the "acquire" menu and select "Abort macro". Before proceeding with the next measurement, it is essential to wait until the computer beeps and the message "macro aborted" is printed on the log window. Technically speaking, a macro is an independent thread. If not properly stopped will interfere with the next thread (macro).

macromenu