- Timestamp:
- Oct 3, 2012 3:38:23 PM (10 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_FlipperPanel.ipf
r864 r865 1124 1124 WAVE err_mu=root:Packages:NIST:Polarization:Cells:err_mu 1125 1125 1126 Open/P=home refnum 1126 Open/P=home refnum //as fname // creates a new file, or overwrites the existing file 1127 1127 fprintf refNum,"IGOR\r" 1128 1128 … … 1184 1184 // print listStr 1185 1185 1186 Open/P=home refnum as fname // creates a new file, or overwrites the existing file1186 Open/P=home refnum // as fname // creates a new file, or overwrites the existing file 1187 1187 fprintf refNum,"IGOR\r" 1188 1188 … … 1289 1289 // print listStr 1290 1290 1291 Open/P=home refnum as fname // creates a new file, or overwrites the existing file1291 Open/P=home refnum // as fname // creates a new file, or overwrites the existing file 1292 1292 fprintf refNum,"IGOR\r" 1293 1293 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationCorrection.ipf
r864 r865 151 151 // print listStr 152 152 153 Open/P=home refnum as fname // creates a new file, or overwrites the existing file153 Open/P=home refnum// as fname // creates a new file, or overwrites the existing file 154 154 fprintf refNum,"IGOR\r" 155 155 … … 356 356 Button button13,pos={440,446},size={120,20},proc=ClearPolCorEntries,title="Clear Entries" 357 357 358 PopupMenu popup1,pos={210,2 4},size={102,20},title="Condition"358 PopupMenu popup1,pos={210,20},size={102,20},title="Condition" 359 359 PopupMenu popup1, mode=1,popvalue="none",value= #"P_GetConditionNameList()" 360 360 … … 376 376 Button button9,help={"Reduce PolCor data"} 377 377 Button button10,pos={226,690},size={120,20},proc=SavePolCorProtocolButton,title="Save Protocol" 378 Button button10,help={"Save the PolCor protocol "}378 Button button10,help={"Save the PolCor protocol, within this experiment only"} 379 379 Button button11,pos={370,690},size={120,20},proc=RecallPolCorProtocolButton,title="Recall Protocol" 380 Button button11,help={"Recall the PolCor protocol"} 381 380 Button button11,help={"Recall a PolCor protocol from memory"} 381 Button button14,pos={226,720},size={120,20},proc=ExportPolCorProtocolButton,title="Export Protocol" 382 Button button14,help={"Export the PolCor protocol, saving it on disk"} 383 Button button15,pos={370,720},size={120,20},proc=ImportPolCorProtocolButton,title="Import Protocol" 384 Button button15,help={"Import a PolCor protocol from a protocol previously saved to disk"} 385 382 386 SetVariable setvar0,pos={322,560},size={250,15},title="file:" 383 387 SetVariable setvar0,help={"Filename of the detector sensitivity file to be used in the data reduction"} … … 1627 1631 //update the data as log of the linear. more correct to use the default scaling 1628 1632 // this is necessary for proper display of the data 1633 SetDataFolder $("root:Packages:NIST:"+type) // this should be redundant, but I somehow eneded up in root: here??? 1634 1629 1635 WAVE data_UU_pc = data_UU_pc 1630 1636 WAVE data_DU_pc = data_DU_pc … … 2394 2400 End 2395 2401 2402 2403 Function ExportPolCorProtocolButton(ctrlName) : ButtonControl 2404 String ctrlName 2405 2406 ExportProtocol(ctrlName) 2407 return(0) 2408 End 2409 2410 2411 Function ImportPolCorProtocolButton(ctrlName) : ButtonControl 2412 String ctrlName 2413 2414 ImportProtocol(ctrlName) 2415 return(0) 2416 End 2417 2396 2418 // at a first pass, uses the regular reduction protocol SaveProtocolButton(ctrlName) 2397 2419 // … … 2451 2473 //on output, w[] is filled with the protocol strings as needed from the panel 2452 2474 // 2475 // -- For polarized beam protocols, don't fill in EMP or BGD, as these are handled differently, since 4 XS 2476 // 2453 2477 Function MakePolProtocolFromPanel(w) 2454 2478 Wave/T w -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationPanels.ipf
r864 r865 159 159 160 160 // 161 // add more cells here as they are defined 161 // add more cells here as they are defined, 162 // 163 // first clear out the list, then rebuild it 162 164 // 163 165 Function InitPolarizationGlobals() … … 165 167 SetDataFolder root:Packages:NIST:Polarization:Cells 166 168 169 String listStr=StringList("gCell_*",";"),item 170 Variable ii,num=ItemsInList(listStr,";") 171 172 for(ii=0;ii<num;ii+=1) 173 item = StringFromList(ii, listStr,";") 174 SVAR gStr = $item 175 KillStrings/Z gStr 176 endfor 177 178 //rebuild the list 167 179 // cell constants 168 180 String/G gCell_Maverick = "cell=Maverick,lambda=5.0,Te=0.87,err_Te=0.01,mu=3.184,err_mu=0.2," … … 275 287 // ShowTools/A 276 288 Button button_0,pos={10,10},size={90,20},proc=AddCellButtonProc,title="Add Cell" 277 Button button_1,pos={118,10},size={1 30,20},proc=SaveCellParButtonProc,title="Save Parameters"278 Button button_2,pos={ 265,10},size={130,20},proc=RevertCellParButtonProc,title="Revert Parameters"279 Button button_3,pos={ 420,10},size={35,20},proc=CellHelpParButtonProc,title="?"289 Button button_1,pos={118,10},size={160,20},proc=SaveCellParButtonProc,title="Update Parameters" 290 Button button_2,pos={300,10},size={130,20},proc=RevertCellParButtonProc,title="Revert Parameters" 291 Button button_3,pos={520,10},size={35,20},proc=CellHelpParButtonProc,title="?" 280 292 281 293 … … 451 463 452 464 453 Button button_1,pos={579,294},size={120,20},proc=CalcRowParamButton,title="Calc Sel Row"465 Button button_1,pos={579,294},size={120,20},proc=CalcRowParamButton,title="Calculate Rows" 454 466 Button button_2,pos={307,18},size={110,20},proc=ClearDecayWavesButton,title="Clear Table" 455 467 Button button_3,pos={579,333},size={120,20},proc=ShowCalcRowButton,title="Show Calc"
Note: See TracChangeset
for help on using the changeset viewer.