- Timestamp:
- Oct 14, 2016 12:53:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_BeamCenter.ipf
r1005 r1015 11 11 // -- add method to be able to write the values to the local folder / or better, to file on disk 12 12 // -- graphically show the beam center / radius of where it is in relation to the panel 13 // 14 // -- move everything into it's own folder, rather than root: 15 // 13 16 14 17 … … 16 19 DoWindow/F PanelFit 17 20 if(V_flag==0) 21 22 NewDataFolder/O root:Packages:NIST:VSANS:Globals:BeamCenter 23 18 24 Execute "DetectorPanelFit()" 19 25 endif … … 39 45 PopupMenu popup_1,mode=1,popvalue="BroadPeak",value= #"\"BroadPeak;other;\"" 40 46 PopupMenu popup_2,pos={20,20},size={109,20},title="Data Source"//,proc=SetFldrPopMenuProc 41 PopupMenu popup_2,mode=1,popvalue=" VCALC",value= #"\"RAW;SAM;VCALC;\""47 PopupMenu popup_2,mode=1,popvalue="RAW",value= #"\"RAW;SAM;VCALC;\"" 42 48 43 49 Button button_0,pos={486,20},size={80,20},proc=DetFitGuessButtonProc,title="Guess" … … 49 55 50 56 51 52 duplicate/O root:Packages:NIST:VSANS:VCALC:entry:instrument:detector_FL:det_FL curDispPanel 57 SetDataFolder root:Packages:NIST:VSANS:Globals:BeamCenter 58 59 duplicate/O root:Packages:NIST:VSANS:RAW:entry:instrument:detector_FL:data curDispPanel 53 60 SetScale/P x 0,1, curDispPanel 54 61 SetScale/P y 0,1, curDispPanel 55 62 56 63 SetDataFolder root: 64 57 65 // draw the correct images 58 66 DrawDetPanel("FL") … … 156 164 Variable nPix_X,nPix_Y,pixSize_X,pixSize_Y 157 165 158 159 Wave dispW=root: curDispPanel166 167 Wave dispW=root:Packages:NIST:VSANS:Globals:BeamCenter:curDispPanel 160 168 Wave cw = root:coef_PeakPix2D 161 169 … … 320 328 cw[8] = pixSize_Y*10 321 329 330 SetDataFolder root:Packages:NIST:VSANS:Globals:BeamCenter 322 331 // generate the new panel display 323 332 duplicate/O newW curDispPanel … … 333 342 RenameWindow #,DetData 334 343 SetActiveSubwindow ## 344 345 SetDataFolder root: 346 335 347 336 348 … … 392 404 case 2: // mouse up 393 405 // click code here 394 Wave dispW=root: curDispPanel406 Wave dispW=root:Packages:NIST:VSANS:Globals:BeamCenter:curDispPanel 395 407 Wave coefW=root:coef_PeakPix2D 396 408 … … 454 466 // click code here 455 467 456 Wave dispW=root: curDispPanel468 Wave dispW=root:Packages:NIST:VSANS:Globals:BeamCenter:curDispPanel 457 469 Wave coefW=root:coef_PeakPix2D 458 470 … … 597 609 // this works if the proper centers are in the file - otherwise, it's a mess 598 610 // "B" is skipped here, as it should be... 611 612 // TODO --?? is this a problem?? 599 613 SVAR type = root:Packages:NIST:VSANS:Globals:gCurDispType 600 614 … … 622 636 Function V_SpreadOutPanels() 623 637 638 // TODO ?? is this a problem?? 624 639 SVAR type = root:Packages:NIST:VSANS:Globals:gCurDispType 625 640
Note: See TracChangeset
for help on using the changeset viewer.