Project

General

Profile

Use the Application Editor to create Leginon applications » History » Version 17

Anchi Cheng, 12/18/2017 04:52 PM

1 8 Anchi Cheng
h1. Use Application Editor in Leginon to create or edit Leginon applications
2 1 Amber Herold
3 3 Eric Hou
#  Start a leginon session
4
 
5
#  Select Menu/Application/Edit...> to start a new application
6
 
7
#  Or Select Menu/Application/Load> to load an existing application for editing
8
 
9 6 Anchi Cheng
#  Save the application through Application/Save> or Save As>
10
11
h2. What you can do:
12
13 9 Anchi Cheng
h3. Create a new application based on an existing one
14
15 17 Anchi Cheng
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.
16
17
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.
18 12 Anchi Cheng
19 9 Anchi Cheng
# Load the existing application
20
# Rename the application
21
# Make changes of node alias, binding and etc.
22 1 Amber Herold
23 16 Anchi Cheng
To save the change as another application:
24
25
# After the change, click on any other item so that gui register the change.
26
# Save the application from menu.
27
*OR*
28
# Left click Application/Save As> and check the application name before confirmation.
29
30 11 Anchi Cheng
h3.  Rename an application, a launcher, or a node
31 10 Anchi Cheng
32 1 Amber Herold
First selecting the item with left click and then click on it again to edit.
33
34 13 Anchi Cheng
h3. Use a different node class for an existing node alias
35
36
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.
37
38 15 Anchi Cheng
# left click the node in the application loaded in Application Editor
39 13 Anchi Cheng
# right click on it to get Property dialog (similar to Add Node dialog below but says Node Properties in the title)
40
# Select your desired Class field and accept it with OK button.
41 1 Amber Herold
# left click on the Application name and change it.
42 13 Anchi Cheng
# After the change, click on any other item so that gui register the change.
43 16 Anchi Cheng
# Save the application from menu as described above.
44 13 Anchi Cheng
45 9 Anchi Cheng
h3.  Add a Launcher.
46 10 Anchi Cheng
47 3 Eric Hou
**  Right-click and hold on the name of the application to select "Add Launcher".
48 1 Amber Herold
**  Rename the launcher to your choice by selecting the launcher name with left click and then click on it again to edit
49 10 Anchi Cheng
50 1 Amber Herold
h3.  Add a node within a Launcher.
51 10 Anchi Cheng
52 3 Eric Hou
!addnode.png!
53 1 Amber Herold
**  Right-click on the launcher to select "Add Node"
54 3 Eric Hou
**  Enter an descriptive Alias name for the node. For example, "Instrument" for the "EM" node.
55 9 Anchi Cheng
**  Choose the Node Class from the pull-down list.
56 10 Anchi Cheng
57 3 Eric Hou
h3. Add Event Bindings between nodes.
58 10 Anchi Cheng
59 3 Eric Hou
**  Right-click on the node the event binding is originated from to select "Bind Event..."
60
**  Add a Presets Manager node aliased as "pm" in the same launcher.
61
**  Select in the pull-down menu where the event is bound to under "To Node".
62 2 Amber Herold
**  Select the event to bind from the pull-down list of the valid event bindings.
63
64 1 Amber Herold
______
65 2 Amber Herold
66 7 Anchi Cheng
[[Edit an existing application as an xml file|Edit an existing application as an xml file >]]
67 2 Amber Herold
68
______