Changeset 924 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Sep 27, 2013 4:59:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/MC_SimulationScripting.ipf
r921 r924 6 6 //************ 7 7 // un-comment the Macros menu declaration to provide easier access to the functions 8 // -- remove the "x" from "xMenu" in the section following these comments. The macros menu 9 // will then have easier access to the scripting functions. 10 // 11 // **To write your own scripts, follow the examples in: 12 // Example_1DSim() 13 // Example_2DSim() 14 // 15 // and also the instructions below in the "basic cycle" 16 // 8 17 //************ 9 18 … … 112 121 // 113 122 // -- scattering from an empty cell is NOT provided in 2D 114 123 // 124 125 126 127 /// un-comment this by removing the "x" from the word xMenu. Then compile. 115 128 xMenu "Macros" 116 129 Submenu "Simulation Scripting - Beta" … … 118 131 "Move to Configuration",Sim_moveConfProc() 119 132 "List Configurations",ListSASCALCConfigs() 120 "Setup Sim Example",Setup_Sim_Example()121 133 "1D Count Rates",DryRunProc_1D() 122 134 "2D Dry Run",DryRunProc_2D() … … 125 137 "Combine by Name",DoCombineFiles_byName(lowQfile,medQfile,hiQfile,saveName) 126 138 "Turn Off Dead Time Correction",Sim_SetDeadTimeTiny() 139 "-" 140 "Setup Sim Example",Setup_Sim_Example() 141 "Run 1D Sim Example",Example_1DSim() 142 "Run 2D Sim Example",Example_2DSim() 127 143 End 128 144 End 129 145 130 // run this before the examples to make sure that the proper named configurations exist. 131 // this function will overwrite any same-named waves 146 147 ////////// --- START OF EXAMPLE SCRIPTS --- //////////////// 148 149 // 150 // run this before the examples to make sure that the proper named configurations and function exist. 151 // this function will overwrite any same-named configurations 152 // 132 153 Function Setup_Sim_Example() 133 154 … … 139 160 Config_13m = {"checkNG7","1","5.08 cm","6","0.115","checkChamber","1/2\"","0","1300","0","","","","","","","","","",""} 140 161 162 // include the model and plot it, so that it will exist. Post to queue so they execute in order 163 Execute/P "INSERTINCLUDE \"SchulzSpheres_Sq_v40\"" 164 Execute/P "COMPILEPROCEDURES " 165 Execute/P "PlotSchulzSpheres_SC(256,0.001,0.7)" 166 167 Execute/P "SASCALC()" 168 141 169 SetDataFolder root: 142 170 … … 305 333 return(0) 306 334 End 335 336 337 //////////////// ---- END OF EXAMPLE SCRIPTS --- //////////////////// 307 338 308 339
Note: See TracChangeset
for help on using the changeset viewer.