Changes for page Experiment control
Last modified by fwilde on 2018/04/09 09:39
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -IDL at EH2user guide1 +IDL@P05 user guide - Content
-
... ... @@ -1,97 +4,12 @@ 1 -{{layout}} 2 -{{layout-section ac:type="two_right_sidebar"}} 3 -{{layout-cell}} 4 4 == {{id name="Experimentcontrol-Generalremarks"/}}General remarks == 5 5 6 6 Beamline control at the P05 µCT hutch uses TANGO server as backend for most applications. At P05 the Interactive Data Language (IDL) serves as user interface to the TANGO servers. IDL procedures and functions provide the functionality to control the µCT experiment and beamline optics components conveniently. A couple of general remarks should facilitate to work with IDL at P05. 7 7 8 8 * IDL has a command history (use arrow keys to browse through recent commands) 9 -* IDL has tab completion (start typing a command e.g. refl<TAB> to complete reflex_opt taken from the command history), Multiple presses on tab will browse through the filtered command history. 6 +* IDL has tab completion (start typing a command e.g. refl<TAB> to complete reflex_opt taken from the command history), Multiple presses on tab will browse through history commands staring with what you typed. 7 +* IDL makes a difference between PROCEDURES and FUNCTIONS. A procedure is a piece of code that is executed without delivering a return value 10 10 * ((( 11 -IDL makes a difference between PROCEDURES and FUNCTIONS. A procedure is a piece of code that is executed without delivering a return value whereas a function does. A procedure's (optional) arguments are separated with commas. Functions need to be called with brackets and optionally a comma separated argument list inside the brackets. 12 - 13 -{{code title="Procedures and functions"}}print, 'hello world.' 14 -i=quick(300) 15 -{{/code}} 16 -))) 17 -* ((( 18 18 In IDL you can chain commands with the & sign 19 19 20 20 {{code title="Chaining commands"}}i=quick(300) & tv, bytscl(bin(i,4),0,65000){{/code}} 21 21 ))) 22 -* ((( 23 -When IDL is ready to accpt commands, the IDL> prompt is printed in a roman font. When IDL is busy doing something (e.g. waiting for a motor to end its move), the //IDL>// prompt is printed in an italic font. 24 - 25 -{{info title="Warning"}}When IDL is busy, you **can** enter a new command, but it will not be executed until the last command is finished. In order to avoid confusion always wait until IDL is ready to accept commands before typing a new command.{{/info}} 26 -))) 27 -* Scripts can be written inside the IDL IDE and saved as .pro files. A script will not be automatically compiled after saving. Press the compile button in IDL in order to make changes in your code applicable. 28 - 29 -== {{id name="Experimentcontrol-IDLMacroguide"/}}IDL Macro guide == 30 - 31 -=== {{id name="Experimentcontrol-AboutIDLmacros"/}}About IDL macros === 32 - 33 -To understand the macro naming convention it helps to categorize the the acors roughly into three categories: 34 - 35 -1. Motor macros 36 -1. Info macros 37 -1. Script macros 38 - 39 -==== {{id name="Experimentcontrol-MotorMacros"/}}Motor Macros ==== 40 - 41 -Motor macros loosely follow a certain naming convention according to the [[EH2 setup>>doc:P5I.µCT setup overview.WebHome]]: 42 - 43 -* ((( 44 -commands contain a name for the stage: 45 - 46 -|=((( 47 -command particle 48 -)))|=((( 49 -stage 50 -))) 51 -|((( 52 -o_stage 53 -)))|((( 54 -camera stage 55 -))) 56 -|((( 57 -s_stage 58 -)))|((( 59 -rotation stage 60 -))) 61 -|((( 62 -s_pos 63 -)))|((( 64 -sample stage 65 -))) 66 -|((( 67 -app_tripod or app 68 -)))|((( 69 -base stage 70 -))) 71 -|((( 72 -o_ccd or o 73 -)))|((( 74 -microscope optics 75 -))) 76 -))) 77 -* Most commands are followed by a direction or rotation axis (x,y,z, rot_x, rot_y, rot_z) 78 -* ((( 79 -A motor command moves either relative or absolute, e.g: 80 - 81 -{{code}}goto_s_stage_z, -10{{/code}}This moves the rotation stage to the position -10 mm in z direction. 82 - 83 - 84 - 85 -{{code}}s_stage_z, 1{{/code}}This example moves the rotation stage by 1 mm up in z direction. 86 -))) 87 - 88 - 89 -{{/layout-cell}} 90 - 91 -{{layout-cell}} 92 -{{panel titleBGColor="blue" title="Table of Contents" borderColor="blue" titleColor="white"}} 93 -{{toc/}} 94 -{{/panel}} 95 -{{/layout-cell}} 96 -{{/layout-section}} 97 -{{/layout}}
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -3402 65851 +34023846 - Title
-
... ... @@ -1,1 +1,1 @@ 1 -IDL at EH2user guide1 +IDL@P05 user guide - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://confluence.desy.de/spaces/P5I/pages/3402 6585/IDLat EH2user guide1 +https://confluence.desy.de/spaces/P5I/pages/34023846/IDL@P05 user guide