Actions
Use the Application Editor to create Leginon applications » History » Revision 15
« Previous |
Revision 15/17
(diff)
| Next »
Anchi Cheng, 12/18/2017 04:48 PM
Use Application Editor in Leginon to create or edit Leginon applications¶
- Start a leginon session
- Select Menu/Application/Edit...> to start a new application
- Or Select Menu/Application/Load> to load an existing application for editing
- Save the application through Application/Save> or Save As>
What you can do:¶
Create a new application based on an existing one¶
The reason for doing so is to keep settings separate among different scopes and camera, so that you don't have to change settings every time you switch scopes. Leginon settings are defined by the node class and the instance name (called node alias in Application Editor), not by application. Therefore, you can setup your presets in "Presets Manager" node of Calibrations application and then close that and get the same presets in "Presets Manager" node of MSI-T application.¶
- Load the existing application
- Rename the application
- Make changes of node alias, binding and etc.
- IMPORTANT Left click Application/Save As> and check the application name before confirmation.
Rename an application, a launcher, or a node¶
First selecting the item with left click and then click on it again to edit.
Use a different node class for an existing node alias¶
For example, you have a good Application that uses JAHCHoleFinder (the hole template finder). You want to replace the JAHCFinder of Exposure Targeting Node to RasterFinder class.
- left click the node in the application loaded in Application Editor
- right click on it to get Property dialog (similar to Add Node dialog below but says Node Properties in the title)
- Select your desired Class field and accept it with OK button.
- left click on the Application name and change it.
- After the change, click on any other item so that gui register the change.
- Save the application from menu.
Add a Launcher.¶
- Right-click and hold on the name of the application to select "Add Launcher".
- Rename the launcher to your choice by selecting the launcher name with left click and then click on it again to edit
Add a node within a Launcher.¶
- Right-click on the launcher to select "Add Node"
- Enter an descriptive Alias name for the node. For example, "Instrument" for the "EM" node.
- Choose the Node Class from the pull-down list.
Add Event Bindings between nodes.¶
- Right-click on the node the event binding is originated from to select "Bind Event..."
- Add a Presets Manager node aliased as "pm" in the same launcher.
- Select in the pull-down menu where the event is bound to under "To Node".
- Select the event to bind from the pull-down list of the valid event bindings.
Edit an existing application as an xml file >
Updated by Anchi Cheng almost 7 years ago · 15 revisions