Use the Application Editor to create Leginon applications » History » Revision 16
Revision 15 (Anchi Cheng, 12/18/2017 04:48 PM) → Revision 16/17 (Anchi Cheng, 12/18/2017 04:51 PM)
h1. 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> h2. What you can do: h3. Create a new application based on an existing one h2. 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. To save the change as another application: # After the change, click on any other item so that gui register the change. # Save the application from menu. *OR* # *IMPORTANT* Left click Application/Save As> and check the application name before confirmation. h3. Rename an application, a launcher, or a node First selecting the item with left click and then click on it again to edit. h3. 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 as described above. menu. h3. 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 h3. Add a node within a Launcher. !addnode.png! ** 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. h3. 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|Edit an existing application as an xml file >]] ______