Changeset 925
- Timestamp:
- Jun 13, 2012 5:43:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/src/round1/test/testbarrier.mac
r911 r925 3 3 # sample file to test sphinx documentation of SPEC macro files 4 4 5 #** 6 # This file contains SPEC macro fragments to test various 7 # parts of the SPHINX documentation builder. 8 5 """ 9 6 ############################################################################### 10 #User macros to configure spec with the Image Server program7 User macros to configure spec with the Image Server program 11 8 ############################################################################### 9 10 This file contains SPEC macro fragments to test various 11 parts of the SPHINX documentation builder. 12 """ 12 13 13 14 def ccdhelp ' … … 22 23 23 24 #============================================================================== 24 #** 25 #common/shutter26 #==============27 #28 #NAME29 #shutter.mac30 #31 #SUMMARY32 #Commands to control a fast photon shutter.33 #34 #DESCRIPTION35 #The macro causes the fast photon shutter to be opened immediately prior to36 #any count command, and closed again upon its completion. A configurable37 #delay time assures that the shutter is fully open before issuing the38 #count command.39 #40 #The photon shutter is controlled via an EPICS binary output channel, and41 #the shutter status is optionally monitored via a binary input channel (in42 #which case the delay time is not used, but the monitor signal is used to43 #check for completion of the opening process).44 #45 #AUTHOR46 #Christian M. Schlepuetz (CS, cschlep)47 #48 #CREATION DATE49 #2004/11/0650 #51 #COPYRIGHT52 #Copyright 2006-2011 by the above authors (see AUTHOR/AUTHORS)53 #54 #This program is free software: you can redistribute it and/or modify55 #it under the terms of the GNU General Public License as published by56 #the Free Software Foundation, either version 3 of the License, or57 #(at your option) any later version.58 #59 #This program is distributed in the hope that it will be useful,60 #but WITHOUT ANY WARRANTY; without even the implied warranty of61 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the62 #GNU General Public License for more details.63 #64 #You should have received a copy of the GNU General Public License65 #along with this program. If not, see http://www.gnu.org/licenses/.66 #67 #VERSION::68 #69 #$. Date: 2010-11-04 19:06:06 -0400 (Thu, 04 Nov 2010) $70 #$. Author: cschlep $71 #$. URL: file:///data/svn/software/spec/trunk/common/shutter.mac $72 #$. Revision: 17 $73 #74 #DEPENDENCIES75 #Chained macro definitions affected by this macro:76 #- user_precount77 #- user_getcounts78 #- cleanup_always79 #80 #HISTORY81 #2004/11/06 (CS):82 #83 #- modified the first original version to comply with naming and format84 #conventions85 #- implemented help-file support and wrote help texts.86 #2010/03/30 (CS):87 #- added the following global variables to make macro more easily portable::88 #89 #SHUTTER_CONTROL_PV # EPICS PV name for the shutter control (bo)90 #SHUTTER_CONTROL_OPEN # EPICS control value for open shutter91 #SHUTTER_CONTROL_CLOSED # EPICS control value for closed shutter92 #SHUTTER_STATUS_PV # EPICE PV name for the shutter status (bi)93 #SHUTTER_STATUS_OPEN # EPICS status value for open shutter94 #SHUTTER_STATUS_CLOSED # EPICS status value for closed shutter95 #SHUTTER_IS_ON # flag for automatic shutter control96 #SHUTTER_SLEEP_TIME # SPEC sleep time after opening shutter97 #98 #2010/07/23 (CS):99 #- added SVN keywords (replacing CVS keywords)100 #101 #2011/12/19 (CS):102 #- reformatted code documentation to work with ROBODoc103 #- added shutter_setup with following internal macros:104 #105 #* _shutter_print_setup106 #* _shutter_set_option107 #* _clear_screen108 #109 #- replaced SHUTTER_STATUS* with SHUTTER_MONITOR*110 #- replaced global variables _OPEN with _OPEN_VAL and111 #_CLOSED with _CLOSED_VAL112 # 25 """ 26 common/shutter 27 ============== 28 29 NAME 30 shutter.mac 31 32 SUMMARY 33 Commands to control a fast photon shutter. 34 35 DESCRIPTION 36 The macro causes the fast photon shutter to be opened immediately prior to 37 any count command, and closed again upon its completion. A configurable 38 delay time assures that the shutter is fully open before issuing the 39 count command. 40 41 The photon shutter is controlled via an EPICS binary output channel, and 42 the shutter status is optionally monitored via a binary input channel (in 43 which case the delay time is not used, but the monitor signal is used to 44 check for completion of the opening process). 45 46 AUTHOR 47 Christian M. Schlepuetz (CS, cschlep) 48 49 CREATION DATE 50 2004/11/06 51 52 COPYRIGHT 53 Copyright 2006-2011 by the above authors (see AUTHOR/AUTHORS) 54 55 This program is free software: you can redistribute it and/or modify 56 it under the terms of the GNU General Public License as published by 57 the Free Software Foundation, either version 3 of the License, or 58 (at your option) any later version. 59 60 This program is distributed in the hope that it will be useful, 61 but WITHOUT ANY WARRANTY; without even the implied warranty of 62 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 63 GNU General Public License for more details. 64 65 You should have received a copy of the GNU General Public License 66 along with this program. If not, see http://www.gnu.org/licenses/. 67 68 VERSION:: 69 70 $. Date: 2010-11-04 19:06:06 -0400 (Thu, 04 Nov 2010) $ 71 $. Author: cschlep $ 72 $. URL: file:///data/svn/software/spec/trunk/common/shutter.mac $ 73 $. Revision: 17 $ 74 75 DEPENDENCIES 76 Chained macro definitions affected by this macro: 77 - user_precount 78 - user_getcounts 79 - cleanup_always 80 81 HISTORY 82 2004/11/06 (CS): 83 84 - modified the first original version to comply with naming and format 85 conventions 86 - implemented help-file support and wrote help texts. 87 2010/03/30 (CS): 88 - added the following global variables to make macro more easily portable:: 89 90 SHUTTER_CONTROL_PV # EPICS PV name for the shutter control (bo) 91 SHUTTER_CONTROL_OPEN # EPICS control value for open shutter 92 SHUTTER_CONTROL_CLOSED # EPICS control value for closed shutter 93 SHUTTER_STATUS_PV # EPICE PV name for the shutter status (bi) 94 SHUTTER_STATUS_OPEN # EPICS status value for open shutter 95 SHUTTER_STATUS_CLOSED # EPICS status value for closed shutter 96 SHUTTER_IS_ON # flag for automatic shutter control 97 SHUTTER_SLEEP_TIME # SPEC sleep time after opening shutter 98 99 2010/07/23 (CS): 100 - added SVN keywords (replacing CVS keywords) 101 102 2011/12/19 (CS): 103 - reformatted code documentation to work with ROBODoc 104 - added shutter_setup with following internal macros: 105 106 * _shutter_print_setup 107 * _shutter_set_option 108 * _clear_screen 109 110 - replaced SHUTTER_STATUS* with SHUTTER_MONITOR* 111 - replaced global variables _OPEN with _OPEN_VAL and 112 _CLOSED with _CLOSED_VAL 113 """ 113 114 #============================================================================== 114 115 … … 155 156 156 157 #------------------------------------------------------------------------------ 157 #**158 # shutter/sh_help, shutter_help159 # =============================160 #161 # Displays the shutter help text.162 #163 # usage::164 #165 # > sh_help166 #167 # .. note::168 # The help text is generated by simply displaying the text file169 # shutter_mac.txt, which should reside in the same directory as shutter.mac.170 # If the file does not exist, a generic help text is shown.171 158 172 159 def shutter_help 'sh_help' 173 160 174 161 def sh_help '{ 175 # ======= 162 """ 163 sh_help, shutter_help 164 ============================= 165 166 Displays the shutter help text. 167 168 usage:: 169 170 > sh_help 171 172 .. note:: 173 The help text is generated by simply displaying the text file 174 ``shutter_mac.txt``, which should reside in the same directory as ``shutter.mac``. 175 If the file does not exist, a generic help text is shown. 176 """ 176 177 177 178 unix (sprintf ("dirname %s", SHUTTER_MAC), _1)
Note: See TracChangeset
for help on using the changeset viewer.