Changeset 1247
- Timestamp:
- Mar 20, 2020 11:51:13 AM (2 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotManager_v40.ipf
r1022 r1247 25 25 26 26 Window A_Plot_Manager() 27 28 Variable sc = 1 //default 29 if(exists("root:Packages:NIST:VSANS:Globals:gLaptopMode")==2) //NVAR does exist 30 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) //then is the value 1 31 sc = 0.7 32 endif 33 endif 34 27 35 PauseUpdate; Silent 1 // building window... 28 NewPanel /W=(658 ,347,1018,737)/N=Plot_Manager/K=2 as "Plot Manager"36 NewPanel /W=(658*sc,347*sc,1018*sc,737*sc)/N=Plot_Manager/K=2 as "Plot Manager" 29 37 ModifyPanel cbRGB=(37265,65535,32896) 30 38 ModifyPanel fixedSize=1 31 39 32 Button button0,pos={ 165,353},size={50,20},proc=A_PlotManager_Done,title="Done"33 PopupMenu popup0,pos={ 15,225},size={233,20},title="Data in Memory"40 Button button0,pos={sc*165,353*sc},size={sc*50,20*sc},proc=A_PlotManager_Done,title="Done" 41 PopupMenu popup0,pos={sc*15,225*sc},size={sc*233,20*sc},title="Data in Memory" 34 42 PopupMenu popup0,mode=1,value= #"A_OneDDataInMemory()" 35 Button button2,pos={ 122,259},size={100,20},proc=A_PlotManager_Append,title="Append Data"36 Button button3,pos={ 15,259},size={80,20},proc=A_PlotManager_newGraph,title="New Graph"37 Button button4,pos={ 15,293},size={220,20},proc=A_PlotManager_Kill,title="Remove Selection From Memory"38 Button button5,pos={ 15,323},size={220,20},proc=A_PlotManager_KillAll,title="Remove All Data From Memory"39 ListBox fileList,pos={ 13,11},size={206,179}43 Button button2,pos={sc*122,259*sc},size={sc*100,20*sc},proc=A_PlotManager_Append,title="Append Data" 44 Button button3,pos={sc*15,259*sc},size={sc*80,20*sc},proc=A_PlotManager_newGraph,title="New Graph" 45 Button button4,pos={sc*15,293*sc},size={sc*220,20*sc},proc=A_PlotManager_Kill,title="Remove Selection From Memory" 46 Button button5,pos={sc*15,323*sc},size={sc*220,20*sc},proc=A_PlotManager_KillAll,title="Remove All Data From Memory" 47 ListBox fileList,pos={sc*13,11*sc},size={sc*206,179*sc} 40 48 ListBox fileList,listWave=root:Packages:NIST:OneDLoader:fileWave 41 49 ListBox fileList,selWave=root:Packages:NIST:OneDLoader:selWave,mode= 4 42 Button button6,pos={ 238,165},size={100,20},proc=A_OneDLoader_LoadButton,title="Load File(s)"50 Button button6,pos={sc*238,165*sc},size={sc*100,20*sc},proc=A_OneDLoader_LoadButton,title="Load File(s)" 43 51 Button button6,help={"Loads the selected files into memory and will graph them if that option is checked"} 44 Button button7,pos={ 238,20},size={100,20},proc=A_OneDLoader_NewFolderButton,title="New Folder"52 Button button7,pos={sc*238,20*sc},size={sc*100,20*sc},proc=A_OneDLoader_NewFolderButton,title="New Folder" 45 53 Button button7,help={"Select a new data folder"} 46 Checkbox check0,pos={ 240,190},title="Plot data on loading?",noproc,value=147 GroupBox group0,pos={ 222,127},size={50,4},title="Shift-click to load"48 GroupBox group0_1,pos={ 222,143},size={50,4},title="multiple files"49 GroupBox group1,pos={ 7,207},size={350,4}50 Button button8,pos={ 238,76},size={100,20},proc=A_OneDLoader_HelpButton,title="Help"51 Button button9,pos={ 238,48},size={100,20},proc=A_PlotManager_Refresh,title="Refresh List"54 Checkbox check0,pos={sc*240,190*sc},title="Plot data on loading?",noproc,value=1 55 GroupBox group0,pos={sc*222,127*sc},size={sc*50,4*sc},title="Shift-click to load" 56 GroupBox group0_1,pos={sc*222,143*sc},size={sc*50,4*sc},title="multiple files" 57 GroupBox group1,pos={sc*7,207*sc},size={sc*350,4*sc} 58 Button button8,pos={sc*238,76*sc},size={sc*100,20*sc},proc=A_OneDLoader_HelpButton,title="Help" 59 Button button9,pos={sc*238,48*sc},size={sc*100,20*sc},proc=A_PlotManager_Refresh,title="Refresh List" 52 60 EndMacro 53 61 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_DetectorBinning_Q.ipf
r1242 r1247 417 417 SetDataFolder root: 418 418 419 End Macro419 End 420 420 421 421 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_VCALCPanel_MockUp.ipf
r1245 r1247 70 70 71 71 Proc DrawVCALC_Panel() 72 Variable sc = 1 73 74 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 75 sc = 0.7 76 endif 77 72 78 PauseUpdate; Silent 1 // building window... 73 NewPanel /W=(34,44,1274,699)/N=VCALC/K=1 79 80 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 81 NewPanel /W=(34*sc,44*sc,1274*sc,630*sc)/N=VCALC/K=1 82 else 83 NewPanel /W=(34,44,1274,699)/N=VCALC/K=1 84 endif 85 74 86 ModifyPanel cbRGB=(49151,60031,65535) 75 87 // ShowTools/A … … 78 90 // always visible stuff, not on any tab 79 91 80 GroupBox group0,pos={ 10,10},size={440,125},title="Setup"81 TabControl Vtab,labelBack=(45000,61000,58000),pos={ 14,150},size={430,200},tabLabel(0)="Collim"92 GroupBox group0,pos={sc*10,10*sc},size={sc*440,125*sc},title="Setup" 93 TabControl Vtab,labelBack=(45000,61000,58000),pos={sc*14,150*sc},size={sc*430,200*sc},tabLabel(0)="Collim" 82 94 TabControl Vtab,tabLabel(1)="Sample",tabLabel(2)="Front Det",tabLabel(3)="Mid Det" 83 95 TabControl Vtab,tabLabel(4)="Back Det",tabLabel(5)="Simul",value= 0,proc=VCALCTabProc 84 GroupBox group1,pos={460,10},size={762,635},title="Detector Panel Positions + Data" 85 Button button_a,pos={210,70},size={100,20},title="Show Mask",proc=V_VCALCShowMaskButtonProc 86 Button button_b,pos={210,100},size={100,20},title="Recalculate",proc=V_VCALCRecalcButtonProc 87 Button button_c,pos={330,70},size={100,20},title="Save Config",proc=V_VCALCSaveConfiguration 88 Button button_d,pos={330,100},size={100,20},title="Save NICE",proc=V_VCALCSaveNICEConfiguration 89 90 91 PopupMenu popup_a,pos={50,40},size={142,20},title="Presets" 96 97 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 98 GroupBox group1,pos={sc*460,10*sc},size={sc*762,565*sc},title="Detector Panel Positions + Data" 99 else 100 GroupBox group1,pos={460,10},size={762,635},title="Detector Panel Positions + Data" 101 endif 102 Button button_a,pos={sc*210,70*sc},size={sc*100,20*sc},title="Show Mask",proc=V_VCALCShowMaskButtonProc 103 Button button_b,pos={sc*210,100*sc},size={sc*100,20*sc},title="Recalculate",proc=V_VCALCRecalcButtonProc 104 Button button_c,pos={sc*330,70*sc},size={sc*100,20*sc},title="Save Config",proc=V_VCALCSaveConfiguration 105 Button button_d,pos={sc*330,100*sc},size={sc*100,20*sc},title="Save NICE",proc=V_VCALCSaveNICEConfiguration 106 107 108 PopupMenu popup_a,pos={sc*50,40*sc},size={sc*142,20*sc},title="Presets" 92 109 PopupMenu popup_a,mode=1,popvalue="White Beam",value= root:Packages:NIST:VSANS:VCALC:gPresetPopStr 93 110 PopupMenu popup_a,proc=VC_PresetConfigPopup 94 111 95 PopupMenu popup_b,pos={670,311},size={142,20},title="Binning type",proc=VC_RebinIQ_PopProc 96 PopupMenu popup_b,mode=1,value= root:Packages:NIST:VSANS:VCALC:gBinTypeStr 97 SetVariable setVar_b,pos={476,313},size={120,15},title="axis Q",proc=Front2DQ_Range_SetVarProc 98 SetVariable setVar_b,limits={0.02,1,0.02},value=_NUM:0.52 99 CheckBox check_0a title="Log?",size={60,20},pos={619,313},proc=Front2DQ_Log_CheckProc 112 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 113 PopupMenu popup_b,pos={sc*670,280*sc},size={sc*142,20*sc},title="Binning type",proc=VC_RebinIQ_PopProc 114 PopupMenu popup_b,mode=1,value= root:Packages:NIST:VSANS:VCALC:gBinTypeStr 115 SetVariable setVar_b,pos={sc*476,280*sc},size={sc*120,15*sc},title="axis Q",proc=Front2DQ_Range_SetVarProc 116 SetVariable setVar_b,limits={0.02,1,0.02},value=_NUM:0.52 117 CheckBox check_0a title="Log?",size={sc*60,20*sc},pos={sc*619,280*sc},proc=Front2DQ_Log_CheckProc 118 else 119 PopupMenu popup_b,pos={670,311},size={142,20},title="Binning type",proc=VC_RebinIQ_PopProc 120 PopupMenu popup_b,mode=1,value= root:Packages:NIST:VSANS:VCALC:gBinTypeStr 121 SetVariable setVar_b,pos={476,313},size={120,15},title="axis Q",proc=Front2DQ_Range_SetVarProc 122 SetVariable setVar_b,limits={0.02,1,0.02},value=_NUM:0.52 123 CheckBox check_0a title="Log?",size={60,20},pos={619,313},proc=Front2DQ_Log_CheckProc 124 endif 125 126 100 127 101 SetVariable setVar_a,pos={ 476,26},size={120,15},title="axis degrees",proc=FrontView_Range_SetVarProc128 SetVariable setVar_a,pos={sc*476,26*sc},size={sc*120,15*sc},title="axis degrees",proc=FrontView_Range_SetVarProc 102 129 SetVariable setVar_a,limits={0.3,30,0.2},value=_NUM:28 103 130 104 ValDisplay valDisp_a,pos={ 30,380},size={200,15},fstyle=1,title="Beam Intensity",value=root:Packages:NIST:VSANS:VCALC:gBeamIntensity131 ValDisplay valDisp_a,pos={sc*30,380*sc},size={sc*200,15*sc},fstyle=1,title="Beam Intensity",value=root:Packages:NIST:VSANS:VCALC:gBeamIntensity 105 132 106 133 SetDrawEnv fstyle= 1 107 DrawText 30,420,"Back"108 DrawText 80 ,420,"Q min"109 DrawText 150 ,420,"Q max"110 ValDisplay valDisp_b,pos={ 30,420},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_B111 ValDisplay valDisp_c,pos={ 130,420},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_B134 DrawText 20*sc,420*sc,"Back" 135 DrawText 80*sc,420*sc,"Q min" 136 DrawText 150*sc,420*sc,"Q max" 137 ValDisplay valDisp_b,pos={sc*30,420*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_B 138 ValDisplay valDisp_c,pos={sc*130,420*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_B 112 139 113 140 SetDrawEnv fstyle= 1 114 DrawText 1 30,460,"Middle"115 DrawText 180 ,460,"Q min"116 DrawText 250 ,460,"Q max"117 ValDisplay valDisp_d,pos={ 130,460},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_M118 ValDisplay valDisp_e,pos={ 230,460},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_M141 DrawText 120*sc,460*sc,"Middle" 142 DrawText 180*sc,460*sc,"Q min" 143 DrawText 250*sc,460*sc,"Q max" 144 ValDisplay valDisp_d,pos={sc*130,460*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_M 145 ValDisplay valDisp_e,pos={sc*230,460*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_M 119 146 120 147 SetDrawEnv fstyle= 1 121 DrawText 2 30,500,"Front"122 DrawText 280 ,500,"Q min"123 DrawText 350 ,500,"Q max"124 ValDisplay valDisp_f,pos={ 230,500},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_F125 ValDisplay valDisp_g,pos={ 330,500},size={100,15},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_F126 127 128 ValDisplay valDisp_h,pos={ 50,530},size={200,15},title="Beam Diam (middle) (cm)",value=root:Packages:NIST:VSANS:VCALC:gBeamDiam129 ValDisplay valDisp_i,pos={ 50,560},size={200,15},title="Beam Stop Diam (middle) (in)",value=root:Packages:NIST:VSANS:VCALC:gBeamStopDiam130 ValDisplay valDisp_j,pos={ 50,590},size={200,15},title="Beam Stop Q min (1/A)",value=root:Packages:NIST:VSANS:VCALC:gRealQMin148 DrawText 220*sc,500*sc,"Front" 149 DrawText 280*sc,500*sc,"Q min" 150 DrawText 350*sc,500*sc,"Q max" 151 ValDisplay valDisp_f,pos={sc*230,500*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmin_F 152 ValDisplay valDisp_g,pos={sc*330,500*sc},size={sc*100,15*sc},title="",value=root:Packages:NIST:VSANS:VCALC:gQmax_F 153 154 155 ValDisplay valDisp_h,pos={sc*50,530*sc},size={sc*200,15*sc},title="Beam Diam (middle) (cm)",value=root:Packages:NIST:VSANS:VCALC:gBeamDiam 156 ValDisplay valDisp_i,pos={sc*50,560*sc},size={sc*200,15*sc},title="Beam Stop Diam (middle) (in)",value=root:Packages:NIST:VSANS:VCALC:gBeamStopDiam 157 ValDisplay valDisp_j,pos={sc*50,590*sc},size={sc*200,15*sc},title="Beam Stop Q min (1/A)",value=root:Packages:NIST:VSANS:VCALC:gRealQMin 131 158 132 159 133 160 134 161 // for panels (in degrees) 135 Display/W=(476,45,757,303)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 162 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 163 Display/W=(476*sc,45*sc,757*sc,270*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 164 else 165 Display/W=(476,45,757,303)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 166 endif 136 167 RenameWindow #,FrontView 137 168 ModifyGraph mode=2 // mode = 2 = dots … … 145 176 146 177 // for side view 147 Display/W=(842 ,25,1200,170)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX178 Display/W=(842*sc,25*sc,1200*sc,170*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 148 179 RenameWindow #,SideView 149 180 ModifyGraph mode=2 // mode = 2 = dots … … 157 188 158 189 // for top view 159 Display/W=(842 ,180,1200,325)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX190 Display/W=(842*sc,180*sc,1200*sc,325*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 160 191 RenameWindow #,TopView 161 192 ModifyGraph mode=2 // mode = 2 = dots … … 167 198 SetActiveSubwindow ## 168 199 200 169 201 // for panels (as 2D Q) 170 Display/W=(475,332,814,631)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 202 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 203 // note that the dimensions here are not strictly followed since the aspect ratio is set below 204 Display/W=(475*sc,310*sc,760*sc,550*sc)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 205 else 206 Display/W=(475,332,814,631)/HOST=# root:Packages:NIST:VSANS:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 207 endif 171 208 RenameWindow #,Panels_Q 172 209 ModifyGraph mode=2 // mode = 2 = dots … … 182 219 183 220 // for averaged I(Q) 184 Display/W=(842,334,1204,629)/HOST=# //root:Packages:NIST:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 221 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 222 Display/W=(842*sc,330*sc,1204*sc,560*sc)/HOST=# //root:Packages:NIST:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 223 else 224 Display/W=(842,334,1204,629)/HOST=# //root:Packages:NIST:VCALC:fv_degY vs root:Packages:NIST:VSANS:VCALC:fv_degX 225 endif 185 226 RenameWindow #,Panels_IQ 186 227 // ModifyGraph mode=2 // mode = 2 = dots … … 196 237 197 238 // tab(0), collimation - initially visible 198 Slider VCALCCtrl_0a,pos={ 223,324-50},size={200,45},limits={0,9,1},value= 1,vert= 0,proc=V_GuideSliderProc199 SetVariable VCALCCtrl_0b,pos={ 25,294-50},size={120,15},title="wavelength"239 Slider VCALCCtrl_0a,pos={sc*223,(324-50)*sc},size={sc*200,45*sc},limits={0,9,1},value= 1,vert= 0,proc=V_GuideSliderProc 240 SetVariable VCALCCtrl_0b,pos={sc*25,(294-50)*sc},size={sc*120,15*sc},title="wavelength" 200 241 SetVariable VCALCCtrl_0b,limits={4,20,1},value=_NUM:8,proc=VC_Lambda_SetVarProc 201 PopupMenu VCALCCtrl_0c,pos={ 26,257-50},size={150,20},title="monochromator"242 PopupMenu VCALCCtrl_0c,pos={sc*26,(257-50)*sc},size={sc*150,20*sc},title="monochromator" 202 243 PopupMenu VCALCCtrl_0c,mode=1,popvalue="Velocity Selector",value= root:Packages:NIST:VSANS:VCALC:gMonochromatorType 203 244 PopupMenu VCALCCtrl_0c,proc=VC_MonochromSelectPopup 204 PopupMenu VCALCCtrl_0d,pos={ 26,321-50},size={115,20},title="delta lambda"245 PopupMenu VCALCCtrl_0d,pos={sc*26,(321-50)*sc},size={sc*115,20*sc},title="delta lambda" 205 246 PopupMenu VCALCCtrl_0d,mode=1,popvalue="0.12",value= root:Packages:NIST:VSANS:VCALC:gDeltaLambda 206 247 PopupMenu VCALCCtrl_0d,proc=VC_DeltaLamSelectPopup 207 PopupMenu VCALCCtrl_0e,pos={ 291,262-50},size={132,20},title="source shape"248 PopupMenu VCALCCtrl_0e,pos={sc*291,(262-50)*sc},size={sc*132,20*sc},title="source shape" 208 249 PopupMenu VCALCCtrl_0e,mode=1,popvalue="circular",value= root:Packages:NIST:VSANS:VCALC:gSourceShape 209 250 PopupMenu VCALCCtrl_0e,proc=VC_SourceApShapeSelectPopup 210 PopupMenu VCALCCtrl_0f,pos={ 283,293-50},size={141,20},title="source aperture"251 PopupMenu VCALCCtrl_0f,pos={sc*283,(293-50)*sc},size={sc*141,20*sc},title="source aperture" 211 252 PopupMenu VCALCCtrl_0f,mode=1,popvalue="6.0 cm",value= root:Packages:NIST:VSANS:VCALC:gSourceDiam 212 253 PopupMenu VCALCCtrl_0f,proc=VC_SourceAperDiamSelectPopup … … 214 255 215 256 // tab(1) - Sample conditions, initially not visible 216 PopupMenu VCALCCtrl_1a,pos={ 38,250-50},size={142,20},title="table location",disable=1257 PopupMenu VCALCCtrl_1a,pos={sc*38,(250-50)*sc},size={sc*142,20*sc},title="table location",disable=1 217 258 PopupMenu VCALCCtrl_1a,mode=1,popvalue="Changer",value= root:Packages:NIST:VSANS:VCALC:gTableLocation 218 PopupMenu VCALCCtrl_1b,pos={ 270,250-50},size={115,20},title="Aperture Shape",disable=1259 PopupMenu VCALCCtrl_1b,pos={sc*270,(250-50)*sc},size={sc*115,20*sc},title="Aperture Shape",disable=1 219 260 PopupMenu VCALCCtrl_1b,mode=1,popvalue="circular",value= root:Packages:NIST:VSANS:VCALC:gSampleApertureShape 220 PopupMenu VCALCCtrl_1c,pos={ 270,310-50},size={132,20},title="Aperture Diam (cm)",disable=1261 PopupMenu VCALCCtrl_1c,pos={sc*270,(310-50)*sc},size={sc*132,20*sc},title="Aperture Diam (cm)",disable=1 221 262 PopupMenu VCALCCtrl_1c,mode=1,popvalue="1.27",value= root:Packages:NIST:VSANS:VCALC:gSampleApertureDiam 222 SetVariable VCALCCtrl_1d,pos={ 25,280-50},size={210,15},title="Sample Aper. to Gate Valve (cm)"//,bodywidth=50263 SetVariable VCALCCtrl_1d,pos={sc*25,(280-50)*sc},size={sc*210,15*sc},title="Sample Aper. to Gate Valve (cm)"//,bodywidth=50 223 264 SetVariable VCALCCtrl_1d,limits={4,40,0.1},value=_NUM:22,proc=VC_A2_to_GV_SetVarProc,disable=1 224 SetVariable VCALCCtrl_1e,pos={ 25,310-50},size={210,15},title="Sample Pos to Gate Valve (cm)"265 SetVariable VCALCCtrl_1e,pos={sc*25,(310-50)*sc},size={sc*210,15*sc},title="Sample Pos to Gate Valve (cm)" 225 266 SetVariable VCALCCtrl_1e,limits={4,40,0.1},value=_NUM:11,proc=VC_Sam_to_GV_SetVarProc,disable=1 226 267 227 268 // tab(2) - Front detector panels, initially not visible 228 SetVariable VCALCCtrl_2a,pos={ 30,260-50},size={160,15},title="LEFT Offset (cm)",proc=VC_FDet_LR_SetVarProc269 SetVariable VCALCCtrl_2a,pos={sc*30,(260-50)*sc},size={sc*160,15*sc},title="LEFT Offset (cm)",proc=VC_FDet_LR_SetVarProc 229 270 SetVariable VCALCCtrl_2a,limits={-20,19,0.1},disable=1,value=_NUM:-10 230 SetVariable VCALCCtrl_2aa,pos={ 30,290-50},size={160,15},title="RIGHT Offset (cm)",proc=VC_FDet_LR_SetVarProc271 SetVariable VCALCCtrl_2aa,pos={sc*30,(290-50)*sc},size={sc*160,15*sc},title="RIGHT Offset (cm)",proc=VC_FDet_LR_SetVarProc 231 272 SetVariable VCALCCtrl_2aa,limits={-19,20,0.1},disable=1,value=_NUM:10 232 273 233 SetVariable VCALCCtrl_2b,pos={ 30,330-50},size={160,15},title="TOP Offset (cm)",proc=VC_FDet_LR_SetVarProc274 SetVariable VCALCCtrl_2b,pos={sc*30,(330-50)*sc},size={sc*160,15*sc},title="TOP Offset (cm)",proc=VC_FDet_LR_SetVarProc 234 275 SetVariable VCALCCtrl_2b,limits={0,18,0.1},disable=1,value=_NUM:10 235 SetVariable VCALCCtrl_2bb,pos={ 30,360-50},size={160,15},title="BOTTOM Offset (cm)",proc=VC_FDet_LR_SetVarProc276 SetVariable VCALCCtrl_2bb,pos={sc*30,(360-50)*sc},size={sc*160,15*sc},title="BOTTOM Offset (cm)",proc=VC_FDet_LR_SetVarProc 236 277 SetVariable VCALCCtrl_2bb,limits={-18,0,0.1},disable=1,value=_NUM:-10 237 278 238 SetVariable VCALCCtrl_2d,pos={ 205,260-50},size={235,15},title="Gate Valve to Detector Dist (cm)",proc=VC_FDet_SDD_SetVarProc279 SetVariable VCALCCtrl_2d,pos={sc*205,(260-50)*sc},size={sc*235,15*sc},title="Gate Valve to Detector Dist (cm)",proc=VC_FDet_SDD_SetVarProc 239 280 SetVariable VCALCCtrl_2d,limits={70,800,1},disable=1 ,value=_NUM:150 240 281 241 282 242 283 // tab(3) - Middle detector panels, initially not visible 243 SetVariable VCALCCtrl_3a,pos={ 30,260-50},size={160,15},title="LEFT Offset (cm)",proc=VC_MDet_LR_SetVarProc284 SetVariable VCALCCtrl_3a,pos={sc*30,(260-50)*sc},size={sc*160,15*sc},title="LEFT Offset (cm)",proc=VC_MDet_LR_SetVarProc 244 285 SetVariable VCALCCtrl_3a,limits={-20,19,0.1},disable=1,value=_NUM:-7 245 SetVariable VCALCCtrl_3aa,pos={ 30,290-50},size={160,15},title="RIGHT Offset (cm)",proc=VC_MDet_LR_SetVarProc286 SetVariable VCALCCtrl_3aa,pos={sc*30,(290-50)*sc},size={sc*160,15*sc},title="RIGHT Offset (cm)",proc=VC_MDet_LR_SetVarProc 246 287 SetVariable VCALCCtrl_3aa,limits={-19,20,0.1},disable=1,value=_NUM:7 247 288 248 SetVariable VCALCCtrl_3b,pos={ 30,330-50},size={160,15},title="TOP Offset (cm)",proc=VC_MDet_LR_SetVarProc289 SetVariable VCALCCtrl_3b,pos={sc*30,(330-50)*sc},size={sc*160,15*sc},title="TOP Offset (cm)",proc=VC_MDet_LR_SetVarProc 249 290 SetVariable VCALCCtrl_3b,limits={0,18,0.1},disable=1,value=_NUM:14 250 SetVariable VCALCCtrl_3bb,pos={ 30,360-50},size={160,15},title="BOTTOM Offset (cm)",proc=VC_MDet_LR_SetVarProc291 SetVariable VCALCCtrl_3bb,pos={sc*30,(360-50)*sc},size={sc*160,15*sc},title="BOTTOM Offset (cm)",proc=VC_MDet_LR_SetVarProc 251 292 SetVariable VCALCCtrl_3bb,limits={-18,0,0.1},disable=1,value=_NUM:-14 252 293 253 SetVariable VCALCCtrl_3d,pos={ 205,260-50},size={235,15},title="Gate Valve to Detector Dist (cm)",proc=VC_MDet_SDD_SetVarProc294 SetVariable VCALCCtrl_3d,pos={sc*205,(260-50)*sc},size={sc*235,15*sc},title="Gate Valve to Detector Dist (cm)",proc=VC_MDet_SDD_SetVarProc 254 295 SetVariable VCALCCtrl_3d,limits={250,2000,1},disable=1,value=_NUM:1000 255 296 256 297 257 298 // tab(4) - Back detector panel 258 SetVariable VCALCCtrl_4a,pos={ 168,290-50},size={160,15},title="Lateral Offset (cm)"299 SetVariable VCALCCtrl_4a,pos={sc*168,(290-50)*sc},size={sc*160,15*sc},title="Lateral Offset (cm)" 259 300 SetVariable VCALCCtrl_4a,limits={0,20,0.1},disable=1,value=_NUM:0 260 SetVariable VCALCCtrl_4b,pos={ 168,260-50},size={250,15},title="Gate Valve to Detector Dist (cm)",proc=VC_BDet_SDD_SetVarProc301 SetVariable VCALCCtrl_4b,pos={sc*168,(260-50)*sc},size={sc*250,15*sc},title="Gate Valve to Detector Dist (cm)",proc=VC_BDet_SDD_SetVarProc 261 302 SetVariable VCALCCtrl_4b,limits={2000,2500,1},disable=1,value=_NUM:2200 262 // PopupMenu VCALCCtrl_4c,pos={ 40,260},size={180,20},title="Detector type",disable=1303 // PopupMenu VCALCCtrl_4c,pos={sc*40,260*sc},size={sc*180,20*sc},title="Detector type",disable=1 263 304 // PopupMenu VCALCCtrl_4c,mode=1,popvalue="2D",value= root:Packages:NIST:VSANS:VCALC:gBackDetType 264 305 265 306 // tab(5) - Simulation setup 266 SetVariable VCALCCtrl_5a,pos={ 40,290-50},size={220,15},title="Neutrons on Sample (imon)"307 SetVariable VCALCCtrl_5a,pos={sc*40,(290-50)*sc},size={sc*220,15*sc},title="Neutrons on Sample (imon)" 267 308 SetVariable VCALCCtrl_5a,limits={1e7,1e15,1e7},disable=1,value=_NUM:1e11,proc=VC_SimImon_SetVarProc 268 PopupMenu VCALCCtrl_5b,pos={ 40,260-50},size={200,20},title="Model Function",disable=1309 PopupMenu VCALCCtrl_5b,pos={sc*40,(260-50)*sc},size={sc*200,20*sc},title="Model Function",disable=1 269 310 PopupMenu VCALCCtrl_5b,mode=1,popvalue="Debye",value= root:Packages:NIST:VSANS:VCALC:gModelFunctionType,proc=VC_SimModelFunc_PopProc 270 311 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Combine_1D.ipf
r1242 r1247 37 37 Proc V_CombineDataGraph() 38 38 39 Variable sc = 1 40 41 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 42 sc = 0.7 43 endif 44 39 45 // this is the "initialization" step 40 46 NewDataFolder/O root:ToTrim … … 46 52 47 53 if(V_flag==0) 48 49 Display /W=(277,526,879,1069)/N=V_1D_Combine /K=2 50 51 ControlBar 70 54 55 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 56 Display/W=(100*sc,40*sc,700*sc,590*sc)/N=V_1D_Combine /K=2 57 else 58 Display /W=(277,526,879,1069)/N=V_1D_Combine /K=2 59 endif 60 61 ControlBar 70*sc 52 62 ModifyGraph cbRGB=(44000,44000,44000) 53 63 54 // Button button2,pos={ 15,5},size={70,20},proc=V_Load_ITX_button,title="Load Data"64 // Button button2,pos={sc*15,5*sc},size={sc*70,20*sc},proc=V_Load_ITX_button,title="Load Data" 55 65 // Button button2,help={"Load an ITX file"} 56 66 57 // PopupMenu popup1,pos={ 125,5},size={90,20},title="Data Folder"67 // PopupMenu popup1,pos={sc*125,5*sc},size={sc*90,20*sc},title="Data Folder" 58 68 // PopupMenu popup1,help={"data folder"} 59 69 // PopupMenu popup1,value= GetAList(4),proc=V_DataFolderPlotPop 60 70 61 PopupMenu popup0,pos={ 15,5},size={70,20},title="Bin Type"71 PopupMenu popup0,pos={sc*15,5*sc},size={sc*70,20*sc},title="Bin Type" 62 72 PopupMenu popup0,help={"binning type"} 63 73 PopupMenu popup0,value= ksBinTypeStr,proc=V_DataBinTypePlotPop 64 74 65 Button button3,pos={ 544.00,5},size={30.00,20.00},title="?"75 Button button3,pos={sc*544.00,5*sc},size={sc*30.00,20.00*sc},title="?" 66 76 Button button3,proc=V_ShowCombine1DHelp,help={"help file for combining 1D data"} 67 77 68 CheckBox check0,pos={ 18.00,36.00},size={57.00,16.00},proc=V_Plot1D_LogCheckProc,title="Log Axes"78 CheckBox check0,pos={sc*18.00,36.00*sc},size={sc*57.00,16.00*sc},proc=V_Plot1D_LogCheckProc,title="Log Axes" 69 79 CheckBox check0,value= 1 70 80 71 Button AllQ,pos={ 100,36},size={70,20},proc=V_AllQ_Plot_1D_ButtonProc,title="All Q"81 Button AllQ,pos={sc*100,36*sc},size={sc*70,20*sc},proc=V_AllQ_Plot_1D_ButtonProc,title="All Q" 72 82 Button AllQ,help={"Show the full q-range of the dataset"} 73 83 74 Button button1,pos={ 225,36},size={140,20},proc=V_TrimWaves2StringButton,title="Save Trim Points"84 Button button1,pos={sc*225,36*sc},size={sc*140,20*sc},proc=V_TrimWaves2StringButton,title="Save Trim Points" 75 85 Button button1,help={"Convert the waves to global strings"} 76 86 77 // Button button4,pos={ 388,36},size={90.00,20.00},title="Trim & Save"87 // Button button4,pos={sc*388,36*sc},size={sc*90.00,20.00*sc},title="Trim & Save" 78 88 // Button button4,help={"combine and save 1D data"},proc=V_SaveTrimmed_Button 79 89 80 Button button0,pos={ 524,36},size={70,20},proc=V_DoneCombine1D_ButtonProc,title="Done"90 Button button0,pos={sc*524,36*sc},size={sc*70,20*sc},proc=V_DoneCombine1D_ButtonProc,title="Done" 81 91 Button button0,help={"Close the panel and kill the temporary folder"} 82 92 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_DIVUtils.ipf
r1242 r1247 52 52 // 53 53 Proc DIV_Setup_Panel() : Panel 54 55 Variable sc = 1 56 57 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 58 sc = 0.7 59 endif 60 54 61 PauseUpdate; Silent 1 // building window... 55 NewPanel /W=(1207 ,593,1444,953)/N=DIV_Setup_Panel/K=162 NewPanel /W=(1207*sc,593*sc,1444*sc,953*sc)/N=DIV_Setup_Panel/K=1 56 63 DoWindow/C DIV_Setup_Panel 57 Button button0,pos={54.00,10.00},size={120.00,20.00},proc=V_DIVSetupButtonProc,title="Setup Folder" 58 Button button1,pos={54.00,40.00},size={120.00,20.00},proc=V_DIVClearOldButtonProc,title="Clear Old DIV" 59 Button button1_2,pos={54.00,70.00},size={120.00,20.00},proc=V_DIVMaskButtonProc,title="Mask for DIV" 60 61 DrawText 32,130,"Reduce data for one carriage" 62 DrawText 32,200,"Repeat for the other carriage(s)" 63 64 Button button2,pos={54.00,145.00},size={120.00,20.00},proc=V_DIVCopyButtonProc,title="Copy" 65 Button button4,pos={54.00,235.00},size={120.00,20.00},proc=V_DIVNormalizeButtonProc,title="Normalize" 66 67 DrawText 32,290,"Once data for both (or 3) carriages\rhas been normalized, save the file" 68 69 Button button3,pos={54.00,300.00},size={120.00,20.00},proc=V_DIVSaveButtonProc,title="Save DIV" 64 Button button0,pos={sc*54.00,10.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVSetupButtonProc,title="Setup Folder" 65 Button button1,pos={sc*54.00,40.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVClearOldButtonProc,title="Clear Old DIV" 66 Button button1_2,pos={sc*54.00,70.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVMaskButtonProc,title="Mask for DIV" 67 68 SetDrawEnv fsize=12*sc 69 DrawText 32*sc,130*sc,"Reduce data for one carriage" 70 SetDrawEnv fsize=12*sc 71 DrawText 32*sc,200*sc,"Repeat for the other carriage(s)" 72 73 Button button2,pos={sc*54.00,145.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVCopyButtonProc,title="Copy" 74 Button button4,pos={sc*54.00,235.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVNormalizeButtonProc,title="Normalize" 75 76 SetDrawEnv fsize=12*sc 77 DrawText 32*sc,290*sc,"Once data for both (or 3) carriages\rhas been normalized, save the file" 78 79 Button button3,pos={sc*54.00,300.00*sc},size={sc*120.00,20.00*sc},proc=V_DIVSaveButtonProc,title="Save DIV" 70 80 EndMacro 71 81 … … 816 826 817 827 Proc V_Display_DIV_Panels() 828 Variable sc = 1 829 830 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 831 sc = 0.7 832 endif 833 818 834 PauseUpdate; Silent 1 // building window... 819 NewPanel /W=(720 ,45,1530,570)/N=VSANS_DIVPanels/K=1835 NewPanel /W=(720*sc,45*sc,1530*sc,570*sc)/N=VSANS_DIVPanels/K=1 820 836 DoWindow/C VSANS_DIVPanels 821 837 // ModifyPanel fixedSize=1,noEdit =1 822 838 823 839 824 PopupMenu popup0,pos={ 17.00,10.00},size={77.00,23.00},proc=V_DispCarriagePopMenuProc,title="Carriage"840 PopupMenu popup0,pos={sc*17.00,10.00*sc},size={sc*77.00,23.00*sc},proc=V_DispCarriagePopMenuProc,title="Carriage" 825 841 PopupMenu popup0,mode=1,value= #"\"F;M;B;\"" 826 PopupMenu popup1,pos={ 134.00,10.00},size={68.00,23.00},proc=V_DispFolderPopMenuProc,title="Folder"842 PopupMenu popup1,pos={sc*134.00,10.00*sc},size={sc*68.00,23.00*sc},proc=V_DispFolderPopMenuProc,title="Folder" 827 843 PopupMenu popup1,mode=1,popvalue="RAW",value= #"\"SAM;EMP;BGD;DIV;COR;CAL;RAW;ABS;STO;SUB;DRK;MSK;ADJ;\"" 828 PopupMenu popup2,pos={ 246.00,10.00},size={83.00,23.00},proc=V_DispOperationPopMenuProc,title="Operation"844 PopupMenu popup2,pos={sc*246.00,10.00*sc},size={sc*83.00,23.00*sc},proc=V_DispOperationPopMenuProc,title="Operation" 829 845 PopupMenu popup2,mode=1,value= #"\"none;ADJ=STO-SUB;ADJ=STO/SUB;\"" 830 Button button0,pos={ 440.00,10.00},size={70.00,20.00},proc=V_DispUpdateButtonProc,title="Update"846 Button button0,pos={sc*440.00,10.00*sc},size={sc*70.00,20.00*sc},proc=V_DispUpdateButtonProc,title="Update" 831 847 832 848 833 849 // Display/W=(745,45,945,425)/HOST=# 834 Display/W=(10 ,45,210,425)/HOST=#850 Display/W=(10*sc,45*sc,210*sc,425*sc)/HOST=# 835 851 AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FL:data // /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 836 852 … … 850 866 851 867 // Display/W=(1300,45,1500,425)/HOST=# 852 Display/W=(565 ,45,765,425)/HOST=#868 Display/W=(565*sc,45*sc,765*sc,425*sc)/HOST=# 853 869 AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FR:data // /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 854 870 ModifyImage data ctab= {*,*,ColdWarm,0} … … 867 883 868 884 // Display/W=(945,45,1300,235)/HOST=# 869 Display/W=(210 ,45,565,235)/HOST=#885 Display/W=(210*sc,45*sc,565*sc,235*sc)/HOST=# 870 886 AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FT:data // /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 871 887 ModifyImage data ctab= {*,*,ColdWarm,0} … … 884 900 885 901 // Display/W=(945,235,1300,425)/HOST=# 886 Display/W=(210 ,235,565,425)/HOST=#902 Display/W=(210*sc,235*sc,565*sc,425*sc)/HOST=# 887 903 AppendImage/T/G=1 :Packages:NIST:VSANS:RAW:entry:instrument:detector_FB:data // /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 888 904 ModifyImage data ctab= {*,*,ColdWarm,0} … … 907 923 908 924 909 TitleBox title0 pos={ 15,450},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr0,fSize=11910 TitleBox title1 pos={ 300,433},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr1,fSize=11911 TitleBox title2 pos={ 300,482},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr2,fSize=11912 TitleBox title3 pos={ 580,450},size={112,36},title=root:Packages:NIST:VSANS:Globals:gDIVstr3,fSize=11925 TitleBox title0 pos={sc*15,450*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr0,fSize=11*sc 926 TitleBox title1 pos={sc*300,433*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr1,fSize=11*sc 927 TitleBox title2 pos={sc*300,482*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr2,fSize=11*sc 928 TitleBox title3 pos={sc*580,450*sc},size={sc*112,36*sc},title=root:Packages:NIST:VSANS:Globals:gDIVstr3,fSize=11*sc 913 929 914 930 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventModeProcessing.ipf
r1242 r1247 203 203 // 204 204 Proc VSANS_EventModePanel() 205 Variable sc = 1 206 207 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 208 sc = 0.7 209 endif 210 205 211 PauseUpdate; Silent 1 // building window... 206 NewPanel /W=(82,44,884,664)/N=VSANS_EventModePanel/K=2 212 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 213 NewPanel /W=(82*sc,10*sc,884*sc,590*sc)/N=VSANS_EventModePanel/K=2 214 else 215 NewPanel /W=(82,44,884,664)/N=VSANS_EventModePanel/K=2 216 endif 217 207 218 DoWindow/C VSANS_EventModePanel 208 219 ModifyPanel fixedSize=1,noEdit =1 … … 215 226 216 227 // ShowTools/A 217 Button button0,pos={ 14,70},size={150,20},proc=V_LoadEventLog_Button,title="Load Event Log File"218 Button button0,fSize=12 219 Button button23,pos={ 14,100},size={150,20},proc=V_LoadEventLog_Button,title="Load From RAW"220 Button button23,fSize=12 221 TitleBox tb1,pos={ 475,500},size={266,86},fSize=10228 Button button0,pos={sc*14,70*sc},size={sc*150,20*sc},proc=V_LoadEventLog_Button,title="Load Event Log File" 229 Button button0,fSize=12*sc 230 Button button23,pos={sc*14,100*sc},size={sc*150,20*sc},proc=V_LoadEventLog_Button,title="Load From RAW" 231 Button button23,fSize=12*sc 232 TitleBox tb1,pos={sc*475,450*sc},size={sc*266,86*sc},fSize=10 222 233 TitleBox tb1,variable= root:Packages:NIST:VSANS:Event:gEventDisplayString 223 234 224 CheckBox chkbox2,pos={ 376,151},size={81,15},proc=V_LogIntEvent_Proc,title="Log Intensity"225 CheckBox chkbox2,fSize=10 ,variable= root:Packages:NIST:VSANS:Event:gEvent_logint226 CheckBox chkbox3,pos={ 14,150},size={119,15},title="Remove Bad Events?",fSize=10235 CheckBox chkbox2,pos={sc*376,151*sc},size={sc*81,15*sc},proc=V_LogIntEvent_Proc,title="Log Intensity" 236 CheckBox chkbox2,fSize=10*sc,variable= root:Packages:NIST:VSANS:Event:gEvent_logint 237 CheckBox chkbox3,pos={sc*14,150*sc},size={sc*119,15*sc},title="Remove Bad Events?",fSize=10*sc 227 238 CheckBox chkbox3,variable= root:Packages:NIST:VSANS:Event:gRemoveBadEvents 228 239 229 Button doneButton,pos={ 738,36},size={50,20},proc=V_EventDone_Proc,title="Done"230 Button doneButton,fSize=12 231 Button button6,pos={ 748,9},size={40,20},proc=V_EventModeHelpButtonProc,title="?"232 233 // Button button5,pos={ 633,228},size={140,20},proc=V_ExportSlicesButtonProc,title="Export Slices as VAX",disable=2234 235 Button button8,pos={ 570,35},size={120,20},proc=V_CustomBinButtonProc,title="Custom Bins"236 Button button2,pos={ 570,65},size={140,20},proc=V_ShowEventDataButtonProc,title="Show Event Data"237 Button button3,pos={ 570,95},size={140,20},proc=V_ShowBinDetailsButtonProc,title="Show Bin Details"238 239 240 Button button7,pos={ 211,33},size={120,20},proc=V_AdjustEventDataButtonProc,title="Adjust Events"241 Button button4,pos={ 211,63},size={120,20},proc=V_UndoTimeSortButtonProc,title="Undo Time Sort"242 Button button18,pos={ 211,90},size={120,20},proc=V_EC_ImportWavesButtonProc,title="Import Edited"243 244 SetVariable setvar0,pos={ 208,149},size={160,16},proc=V_sliceSelectEvent_Proc,title="Display Time Slice"245 SetVariable setvar0,fSize=10 240 Button doneButton,pos={sc*738,36*sc},size={sc*50,20*sc},proc=V_EventDone_Proc,title="Done" 241 Button doneButton,fSize=12*sc 242 Button button6,pos={sc*748,9*sc},size={sc*40,20*sc},proc=V_EventModeHelpButtonProc,title="?" 243 244 // Button button5,pos={sc*633,228*sc},size={sc*140,20*sc},proc=V_ExportSlicesButtonProc,title="Export Slices as VAX",disable=2 245 246 Button button8,pos={sc*570,35*sc},size={sc*120,20*sc},proc=V_CustomBinButtonProc,title="Custom Bins" 247 Button button2,pos={sc*570,65*sc},size={sc*140,20*sc},proc=V_ShowEventDataButtonProc,title="Show Event Data" 248 Button button3,pos={sc*570,95*sc},size={sc*140,20*sc},proc=V_ShowBinDetailsButtonProc,title="Show Bin Details" 249 250 251 Button button7,pos={sc*211,33*sc},size={sc*120,20*sc},proc=V_AdjustEventDataButtonProc,title="Adjust Events" 252 Button button4,pos={sc*211,63*sc},size={sc*120,20*sc},proc=V_UndoTimeSortButtonProc,title="Undo Time Sort" 253 Button button18,pos={sc*211,90*sc},size={sc*120,20*sc},proc=V_EC_ImportWavesButtonProc,title="Import Edited" 254 255 SetVariable setvar0,pos={sc*208,149*sc},size={sc*160,16*sc},proc=V_sliceSelectEvent_Proc,title="Display Time Slice" 256 SetVariable setvar0,fSize=10*sc 246 257 SetVariable setvar0,limits={0,1000,1},value= root:Packages:NIST:VSANS:Event:gEvent_tsdisp 247 SetVariable setvar1,pos={ 389,29},size={160,16},title="Number of slices",fSize=10258 SetVariable setvar1,pos={sc*389,29*sc},size={sc*160,16*sc},title="Number of slices",fSize=10*sc 248 259 SetVariable setvar1,limits={1,1000,1},value= root:Packages:NIST:VSANS:Event:gEvent_nslices 249 SetVariable setvar2,pos={ 389,54},size={160,16},title="Max Time (s)",fSize=10260 SetVariable setvar2,pos={sc*389,54*sc},size={sc*160,16*sc},title="Max Time (s)",fSize=10*sc 250 261 SetVariable setvar2,value= root:Packages:NIST:VSANS:Event:gEvent_t_longest 251 262 252 PopupMenu popup0,pos={ 389,77},size={119,20},proc=V_BinTypePopMenuProc,title="Bin Spacing"253 PopupMenu popup0,fSize=10 263 PopupMenu popup0,pos={sc*389,77*sc},size={sc*119,20*sc},proc=V_BinTypePopMenuProc,title="Bin Spacing" 264 PopupMenu popup0,fSize=10*sc 254 265 PopupMenu popup0,mode=1,popvalue="Equal",value= #"\"Equal;Fibonacci;Custom;\"" 255 Button button1,pos={ 389,103},size={120,20},fSize=12,proc=V_ProcessEventLog_Button,title="Bin Event Data"266 Button button1,pos={sc*389,103*sc},size={sc*120,20*sc},fSize=12*sc,proc=V_ProcessEventLog_Button,title="Bin Event Data" 256 267 257 268 // NEW FOR VSANS 258 Button button21,pos={ 488,205},size={120,20},proc=V_SplitToPanels_Button,title="Split to Panels"259 Button button22,pos={ 488,240},size={120,20},proc=V_GraphPanels_Button,title="Show Panels"260 261 Button button24,pos={ 488,270},size={180,20},proc=V_DuplRAWForExport_Button,title="Duplicate RAW for Export"262 Button button25,pos={ 488,300},size={180,20},proc=V_CopySlicesForExport_Button,title="Copy Slices for Export"263 Button button26,pos={ 488,330},size={180,20},proc=V_SaveExportedNexus_Button,title="Save Exported to Nexus"264 265 // Button button10,pos={ 488,305},size={100,20},proc=V_SplitFileButtonProc,title="Split Big File",disable=2266 // Button button14,pos={ 488,350},size={120,20},proc=V_Stream_LoadDecim,title="Load Split List",disable=2267 // Button button19,pos={ 649,350},size={120,20},proc=V_Stream_LoadAdjustedList,title="Load Edited List",disable=2268 // Button button20,pos={ 680,376},size={90,20},proc=V_ShowList_ToLoad,title="Show List",disable=2269 // SetVariable setvar3,pos={ 487,378},size={150,16},title="Decimation factor",disable=2269 Button button21,pos={sc*488,205*sc},size={sc*120,20*sc},proc=V_SplitToPanels_Button,title="Split to Panels" 270 Button button22,pos={sc*488,240*sc},size={sc*120,20*sc},proc=V_GraphPanels_Button,title="Show Panels" 271 272 Button button24,pos={sc*488,270*sc},size={sc*180,20*sc},proc=V_DuplRAWForExport_Button,title="Duplicate RAW for Export" 273 Button button25,pos={sc*488,300*sc},size={sc*180,20*sc},proc=V_CopySlicesForExport_Button,title="Copy Slices for Export" 274 Button button26,pos={sc*488,330*sc},size={sc*180,20*sc},proc=V_SaveExportedNexus_Button,title="Save Exported to Nexus" 275 276 // Button button10,pos={sc*488,305*sc},size={sc*100,20*sc},proc=V_SplitFileButtonProc,title="Split Big File",disable=2 277 // Button button14,pos={sc*488,350*sc},size={sc*120,20*sc},proc=V_Stream_LoadDecim,title="Load Split List",disable=2 278 // Button button19,pos={sc*649,350*sc},size={sc*120,20*sc},proc=V_Stream_LoadAdjustedList,title="Load Edited List",disable=2 279 // Button button20,pos={sc*680,376*sc},size={sc*90,20*sc},proc=V_ShowList_ToLoad,title="Show List",disable=2 280 // SetVariable setvar3,pos={sc*487,378*sc},size={sc*150,16*sc},title="Decimation factor",disable=2 270 281 // SetVariable setvar3,fSize=10 271 282 // SetVariable setvar3,limits={1,inf,1},value= root:Packages:NIST:VSANS:Event:gDecimation 272 283 // 273 // Button button15_0,pos={ 488,425},size={110,20},proc=V_AccumulateSlicesButton,title="Add First Slice",disable=2274 // Button button16_1,pos={ 488,450},size={110,20},proc=V_AccumulateSlicesButton,title="Add Next Slice",disable=2275 // Button button17_2,pos={ 620,425},size={110,20},proc=V_AccumulateSlicesButton,title="Display Total",disable=2276 277 CheckBox chkbox1_0,pos={ 25,30},size={69,14},title="Oscillatory",fSize=10284 // Button button15_0,pos={sc*488,425*sc},size={sc*110,20*sc},proc=V_AccumulateSlicesButton,title="Add First Slice",disable=2 285 // Button button16_1,pos={sc*488,450*sc},size={sc*110,20*sc},proc=V_AccumulateSlicesButton,title="Add Next Slice",disable=2 286 // Button button17_2,pos={sc*620,425*sc},size={sc*110,20*sc},proc=V_AccumulateSlicesButton,title="Display Total",disable=2 287 288 CheckBox chkbox1_0,pos={sc*25,30*sc},size={sc*69,14*sc},title="Oscillatory",fSize=10*sc 278 289 CheckBox chkbox1_0,mode=1,proc=V_EventModeRadioProc,value=0 279 CheckBox chkbox1_1,pos={ 25,50},size={53,14},title="Stream",fSize=10290 CheckBox chkbox1_1,pos={sc*25,50*sc},size={sc*53,14*sc},title="Stream",fSize=10*sc 280 291 CheckBox chkbox1_1,proc=V_EventModeRadioProc,value=1,mode=1 281 // CheckBox chkbox1_2,pos={ 104,59},size={53,14},title="TISANE",fSize=10292 // CheckBox chkbox1_2,pos={sc*104,59*sc},size={sc*53,14*sc},title="TISANE",fSize=10 282 293 // CheckBox chkbox1_2,proc=V_EventModeRadioProc,value=0,mode=1 283 CheckBox chkbox1_3,pos={ 104,30},size={37,14},title="TOF",fSize=10294 CheckBox chkbox1_3,pos={sc*104,30*sc},size={sc*37,14*sc},title="TOF",fSize=10*sc 284 295 CheckBox chkbox1_3,proc=V_EventModeRadioProc,value=0,mode=1 285 296 286 CheckBox chkbox1_4,pos={ 30,125},size={37,14},title="F",fSize=10297 CheckBox chkbox1_4,pos={sc*30,125*sc},size={sc*37,14*sc},title="F",fSize=10*sc 287 298 CheckBox chkbox1_4,proc=V_EventCarrRadioProc,value=1,mode=1 288 CheckBox chkbox1_5,pos={ 90,125},size={37,14},title="M",fSize=10299 CheckBox chkbox1_5,pos={sc*90,125*sc},size={sc*37,14*sc},title="M",fSize=10*sc 289 300 CheckBox chkbox1_5,proc=V_EventCarrRadioProc,value=0,mode=1 290 301 291 GroupBox group0_0,pos={ 5,5},size={174,140},title="(1) Loading Mode",fSize=12,fStyle=1292 GroupBox group0_3,pos={ 191,5},size={165,130},title="(2) Edit Events",fSize=12,fStyle=1293 GroupBox group0_1,pos={ 372,5},size={350,130},title="(3) Bin Events",fSize=12,fStyle=1294 GroupBox group0_2,pos={ 477,169},size={310,300},title="(4) View / Export",fSize=12,fStyle=1295 296 // GroupBox group0_4,pos={ 474,278},size={312,200},title="Split / Accumulate Files",fSize=12302 GroupBox group0_0,pos={sc*5,5*sc},size={sc*174,140*sc},title="(1) Loading Mode",fSize=12*sc,fStyle=1 303 GroupBox group0_3,pos={sc*191,5*sc},size={sc*165,130*sc},title="(2) Edit Events",fSize=12*sc,fStyle=1 304 GroupBox group0_1,pos={sc*372,5*sc},size={sc*350,130*sc},title="(3) Bin Events",fSize=12*sc,fStyle=1 305 GroupBox group0_2,pos={sc*477,169*sc},size={sc*310,250*sc},title="(4) View / Export",fSize=12*sc,fStyle=1 306 307 // GroupBox group0_4,pos={sc*474,278*sc},size={sc*312,200*sc},title="Split / Accumulate Files",fSize=12 297 308 // GroupBox group0_4,fStyle=1 298 309 299 Display/W=(10 ,170,460,610)/HOST=#310 Display/W=(10*sc,170*sc,460*sc,610*sc)/HOST=# 300 311 AppendImage/T/G=1 :Packages:NIST:VSANS:Event:dispsliceData // /G=1 flag prevents interpretation as RGB so 3, 4 slices display correctly 301 312 ModifyImage dispsliceData ctab= {*,*,ColdWarm,0} … … 1757 1768 1758 1769 Proc V_BinEventBarGraph() 1770 Variable sc = 1 1771 1772 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 1773 sc = 0.7 1774 endif 1759 1775 1760 1776 DoWindow/F V_EventBarGraph … … 1763 1779 String fldrSav0= GetDataFolder(1) 1764 1780 SetDataFolder root:Packages:NIST:VSANS:Event: 1765 Display /W=(110 ,705,610,1132)/N=V_EventBarGraph /K=1 binCount vs binEndTime1781 Display /W=(110*sc,705*sc,610*sc,1132*sc)/N=V_EventBarGraph /K=1 binCount vs binEndTime 1766 1782 SetDataFolder fldrSav0 1767 1783 ModifyGraph mode=5 … … 1784 1800 1785 1801 Proc V_ShowBinTable() 1802 Variable sc = 1 1803 1804 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 1805 sc = 0.7 1806 endif 1786 1807 1787 1808 DoWindow/F V_BinEventTable … … 1790 1811 String fldrSav0= GetDataFolder(1) 1791 1812 SetDataFolder root:Packages:NIST:VSANS:Event: 1792 Edit/W=(498 ,699,1003,955) /K=1/N=V_BinEventTable binCount,binEndTime,timeWidth1793 ModifyTable format(Point)=1,sigDigits(binEndTime)=8,width(binEndTime)=100 1813 Edit/W=(498*sc,699*sc,1003*sc,955*sc) /K=1/N=V_BinEventTable binCount,binEndTime,timeWidth 1814 ModifyTable format(Point)=1,sigDigits(binEndTime)=8,width(binEndTime)=100*sc 1794 1815 SetDataFolder fldrSav0 1795 1816 endif … … 1800 1821 // 1801 1822 Proc V_ShowRescaledTimeGraph() 1823 Variable sc = 1 1824 1825 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 1826 sc = 0.7 1827 endif 1802 1828 1803 1829 DoWindow/F V_RescaledTimeGraph … … 1806 1832 String fldrSav0= GetDataFolder(1) 1807 1833 SetDataFolder root:Packages:NIST:VSANS:Event: 1808 Display /W=(25 ,44,486,356)/K=1/N=V_RescaledTimeGraph rescaledTime1834 Display /W=(25*sc,44*sc,486*sc,356*sc)/K=1/N=V_RescaledTimeGraph rescaledTime 1809 1835 SetDataFolder fldrSav0 1810 1836 ModifyGraph mode=4 … … 1815 1841 SetAxis bottom 0,1500 1816 1842 ErrorBars rescaledTime OFF 1817 Label left "\\Z14Time (seconds)" 1818 Label bottom "\\Z14Event number" 1843 1844 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 1845 Label left "\\Z10Time (seconds)" 1846 Label bottom "\\Z10Event number" 1847 else 1848 Label left "\\Z14Time (seconds)" 1849 Label bottom "\\Z14Event number" 1850 endif 1819 1851 ShowInfo 1820 1852 endif … … 2057 2089 2058 2090 Proc V_EventCorrectionPanel() 2059 2091 Variable sc = 1 2092 2093 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 2094 sc = 0.7 2095 endif 2096 2060 2097 PauseUpdate; Silent 1 // building window... 2061 2098 SetDataFolder root:Packages:NIST:VSANS:Event: 2062 2099 2063 2100 if(exists("rescaledTime") == 1) 2064 Display /W=(35 ,44,761,533)/K=2 rescaledTime2101 Display /W=(35*sc,44*sc,761*sc,533*sc)/K=2 rescaledTime 2065 2102 DoWindow/C V_EventCorrectionPanel 2066 2103 ModifyGraph mode=4 … … 2068 2105 ModifyGraph rgb=(0,0,0) 2069 2106 ModifyGraph msize=1 2070 ErrorBars rescaledTime OFF 2071 Label left "\\Z14Time (seconds)" 2072 Label bottom "\\Z14Event number" 2107 ErrorBars rescaledTime OFF 2108 2109 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 2110 Label left "\\Z10Time (seconds)" 2111 Label bottom "\\Z10Event number" 2112 else 2113 Label left "\\Z14Time (seconds)" 2114 Label bottom "\\Z14Event number" 2115 endif 2073 2116 SetAxis bottom 0,0.10*numpnts(rescaledTime) //show 1st 10% of data for speed in displaying 2074 2117 2075 2118 ControlBar 100 2076 Button button0,pos={ 18,12},size={70,20},proc=V_EC_AddCursorButtonProc,title="Cursors"2077 Button button1,pos={ 153,12},size={80,20},proc=V_EC_AddTimeButtonProc,title="Add time"2078 Button button2,pos={ 153,38},size={80,20},proc=V_EC_SubtractTimeButtonProc,title="Subtr time"2079 Button button3,pos={ 153,64},size={90,20},proc=V_EC_TrimPointsButtonProc,title="Trim points"2080 Button button4,pos={ 295+150,12},size={90,20},proc=V_EC_SaveWavesButtonProc,title="Save Waves"2081 Button button5,pos={ 295,64},size={100,20},proc=V_EC_FindOutlierButton,title="Find Outlier"2082 Button button6,pos={ 18,38},size={80,20},proc=V_EC_ShowAllButtonProc,title="All Data"2083 Button button7,pos={ 683,12},size={30,20},proc=V_EC_HelpButtonProc,title="?"2084 Button button8,pos={ 658,72},size={60,20},proc=V_EC_DoneButtonProc,title="Done"2085 2086 Button button9,pos={ 295,12},size={110,20},proc=V_EC_FindStepButton_down,title="Find Step Down"2087 Button button10,pos={ 295,38},size={110,20},proc=V_EC_FindStepButton_up,title="Find Step Up"2088 Button button11,pos={ 295+150,38},size={110,20},proc=V_EC_DoDifferential,title="Differential"2119 Button button0,pos={sc*18,12*sc},size={sc*70,20*sc},proc=V_EC_AddCursorButtonProc,title="Cursors" 2120 Button button1,pos={sc*153,12*sc},size={sc*80,20*sc},proc=V_EC_AddTimeButtonProc,title="Add time" 2121 Button button2,pos={sc*153,38*sc},size={sc*80,20*sc},proc=V_EC_SubtractTimeButtonProc,title="Subtr time" 2122 Button button3,pos={sc*153,64*sc},size={sc*90,20*sc},proc=V_EC_TrimPointsButtonProc,title="Trim points" 2123 Button button4,pos={sc*(295+150),12*sc},size={sc*90,20*sc},proc=V_EC_SaveWavesButtonProc,title="Save Waves" 2124 Button button5,pos={sc*295,64*sc},size={sc*100,20*sc},proc=V_EC_FindOutlierButton,title="Find Outlier" 2125 Button button6,pos={sc*18,38*sc},size={sc*80,20*sc},proc=V_EC_ShowAllButtonProc,title="All Data" 2126 Button button7,pos={sc*683,12*sc},size={sc*30,20*sc},proc=V_EC_HelpButtonProc,title="?" 2127 Button button8,pos={sc*658,72*sc},size={sc*60,20*sc},proc=V_EC_DoneButtonProc,title="Done" 2128 2129 Button button9,pos={sc*295,12*sc},size={sc*110,20*sc},proc=V_EC_FindStepButton_down,title="Find Step Down" 2130 Button button10,pos={sc*295,38*sc},size={sc*110,20*sc},proc=V_EC_FindStepButton_up,title="Find Step Up" 2131 Button button11,pos={sc*(295+150),38*sc},size={sc*110,20*sc},proc=V_EC_DoDifferential,title="Differential" 2089 2132 2090 2133 … … 2530 2573 // 2531 2574 Proc V_CustomBinPanel() 2575 Variable sc = 1 2576 2577 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 2578 sc = 0.7 2579 endif 2580 2532 2581 PauseUpdate; Silent 1 // building window... 2533 NewPanel /W=(130 ,44,851,455)/K=2 /N=V_CustomBinPanel2582 NewPanel /W=(130*sc,44*sc,851*sc,455*sc)/K=2 /N=V_CustomBinPanel 2534 2583 DoWindow/C V_CustomBinPanel 2535 2584 ModifyPanel fixedSize=1//,noEdit =1 2536 2585 SetDrawLayer UserBack 2537 2586 2538 Button button0,pos={ 654,42}, size={50,20},title="Done",fSize=122587 Button button0,pos={sc*654,42*sc}, size={sc*50,20*sc},title="Done",fSize=12 2539 2588 Button button0,proc=V_CB_Done_Proc 2540 Button button1,pos={ 663,14},size={40,20},proc=V_CB_HelpButtonProc,title="?"2541 Button button2,pos={ 216,42},size={80,20},title="Update",proc=V_CB_UpdateWavesButton2542 SetVariable setvar1,pos={ 23,13},size={160,20},title="Number of slices",fSize=122589 Button button1,pos={sc*663,14*sc},size={sc*40,20*sc},proc=V_CB_HelpButtonProc,title="?" 2590 Button button2,pos={sc*216,42*sc},size={sc*80,20*sc},title="Update",proc=V_CB_UpdateWavesButton 2591 SetVariable setvar1,pos={sc*23,13*sc},size={sc*160,20*sc},title="Number of slices",fSize=12 2543 2592 SetVariable setvar1,proc=CB_NumSlicesSetVarProc,value=root:Packages:NIST:VSANS:Event:gEvent_nslices 2544 SetVariable setvar2,pos={ 24,44},size={160,20},title="Max Time (s)",fSize=102593 SetVariable setvar2,pos={sc*24,44*sc},size={sc*160,20*sc},title="Max Time (s)",fSize=10 2545 2594 SetVariable setvar2,value=root:Packages:NIST:VSANS:Event:gEvent_t_longest 2546 2595 2547 CheckBox chkbox1,pos={ 216,14},title="Enforce Max Time?"2596 CheckBox chkbox1,pos={sc*216,14*sc},title="Enforce Max Time?" 2548 2597 CheckBox chkbox1,variable = root:Packages:NIST:VSANS:Event:gEvent_ForceTmaxBin 2549 Button button3,pos={ 500,14},size={90,20},proc=V_CB_SaveBinsButtonProc,title="Save Bins"2550 Button button4,pos={ 500,42},size={100,20},proc=V_CB_ImportBinsButtonProc,title="Import Bins"2598 Button button3,pos={sc*500,14*sc},size={sc*90,20*sc},proc=V_CB_SaveBinsButtonProc,title="Save Bins" 2599 Button button4,pos={sc*500,42*sc},size={sc*100,20*sc},proc=V_CB_ImportBinsButtonProc,title="Import Bins" 2551 2600 2552 2601 SetDataFolder root:Packages:NIST:VSANS:Event: 2553 2602 2554 Display/W=(291 ,86,706,395)/HOST=V_CustomBinPanel/N=BarGraph binCount vs binEndTime2603 Display/W=(291*sc,86*sc,706*sc,395*sc)/HOST=V_CustomBinPanel/N=BarGraph binCount vs binEndTime 2555 2604 ModifyGraph mode=5 2556 2605 ModifyGraph marker=19 … … 2570 2619 2571 2620 // and the table 2572 Edit/W=(13 ,87,280,394)/HOST=V_CustomBinPanel/N=T02621 Edit/W=(13*sc,87*sc,280*sc,394*sc)/HOST=V_CustomBinPanel/N=T0 2573 2622 AppendToTable/W=V_CustomBinPanel#T0 timeWidth,binEndTime 2574 2623 ModifyTable width(Point)=40 … … 2981 3030 // NewPanel /W=(1602,44,1961,380)/K=1 2982 3031 //// ShowTools/A 2983 // Button button0,pos={ 29,15},size={100,20},proc=SplitFileButtonProc,title="Split Big File"2984 // SetVariable setvar0,pos={ 182,55},size={150,15},title="Decimation factor",fsize=103032 // Button button0,pos={sc*29,15*sc},size={sc*100,20*sc},proc=SplitFileButtonProc,title="Split Big File" 3033 // SetVariable setvar0,pos={sc*182,55*sc},size={sc*150,15*sc},title="Decimation factor",fsize=10 2985 3034 // SetVariable setvar0,limits={1,inf,1},value= root:Packages:NIST:VSANS:Event:gDecimation 2986 // Button button1,pos={ 26,245},size={150,20},proc=LoadDecimateButtonProc,title="Load and Decimate"2987 // Button button2,pos={ 25,277},size={150,20},proc=ConcatenateButtonProc,title="Concatenate"2988 // Button button3,pos={ 25,305},size={150,20},proc=DisplayConcatenatedButtonProc,title="Display Concatenated"2989 // Button button4,pos={ 29,52},size={130,20},proc=Stream_LoadDecim,title="Load From List"2990 // 2991 // GroupBox group0 title="Manual Controls",size={ 185,112},pos={14,220}3035 // Button button1,pos={sc*26,245*sc},size={sc*150,20*sc},proc=LoadDecimateButtonProc,title="Load and Decimate" 3036 // Button button2,pos={sc*25,277*sc},size={sc*150,20*sc},proc=ConcatenateButtonProc,title="Concatenate" 3037 // Button button3,pos={sc*25,305*sc},size={sc*150,20*sc},proc=DisplayConcatenatedButtonProc,title="Display Concatenated" 3038 // Button button4,pos={sc*29,52*sc},size={sc*130,20*sc},proc=Stream_LoadDecim,title="Load From List" 3039 // 3040 // GroupBox group0 title="Manual Controls",size={sc*185,112*sc},pos={sc*14,220} 2992 3041 //EndMacro 2993 3042 … … 3003 3052 // 3004 3053 Proc V_ShowDecimatedGraph() 3054 Variable sc = 1 3055 3056 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 3057 sc = 0.7 3058 endif 3005 3059 3006 3060 DoWindow/F V_DecimatedGraph … … 3009 3063 String fldrSav0= GetDataFolder(1) 3010 3064 SetDataFolder root:Packages:NIST:VSANS:Event: 3011 Display /W=(25 ,44,486,356)/K=1/N=V_DecimatedGraph rescaledTime_dec3065 Display /W=(25*sc,44*sc,486*sc,356*sc)/K=1/N=V_DecimatedGraph rescaledTime_dec 3012 3066 SetDataFolder fldrSav0 3013 3067 ModifyGraph mode=4 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_EventMode_Utils.ipf
r1242 r1247 4 4 5 5 6 7 6 // 7 // There are functions in this file to generate "fake" event data for testing 8 // 8 9 9 10 … … 1046 1047 // 1047 1048 Window V_Event_Reduce_Panel() 1049 Variable sc = 1 1050 1051 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 1052 sc = 0.7 1053 endif 1054 1048 1055 PauseUpdate; Silent 1 // building window... 1049 NewPanel /W=(535 ,72,951,288) /K=1 as "Event File File Reduction"1056 NewPanel /W=(535*sc,72*sc,951*sc,288*sc) /K=1 as "Event File File Reduction" 1050 1057 ModifyPanel cbRGB=(60535,51151,51490) 1051 1058 ModifyPanel fixedSize=1 1052 1059 SetDrawLayer UserBack 1053 DrawLine 7 ,30,422,301054 SetVariable PathDisplay,pos={ 77,7},size={300,13},title="Path"1060 DrawLine 7*sc,30*sc,422*sc,30*sc 1061 SetVariable PathDisplay,pos={sc*77,7*sc},size={sc*300,13*sc},title="Path" 1055 1062 SetVariable PathDisplay,help={"This is the path to the folder that will be used to find the SANS data while reducing. If no files appear in the popup, make sure that this folder is set correctly"} 1056 1063 SetVariable PathDisplay,limits={-Inf,Inf,0},value= root:Packages:NIST:VSANS:Globals:EVRED:gCatPathStr 1057 Button PathButton,pos={ 3,3},size={70,20},proc=V_PickEVRPathButton,title="Pick Path"1064 Button PathButton,pos={sc*3,3*sc},size={sc*70,20*sc},proc=V_PickEVRPathButton,title="Pick Path" 1058 1065 Button PathButton,help={"Select the folder containing the raw SANS data files"} 1059 Button helpButton,pos={ 385,3},size={25,20},proc=V_ShowEVRHelp,title="?"1066 Button helpButton,pos={sc*385,3*sc},size={sc*25,20*sc},proc=V_ShowEVRHelp,title="?" 1060 1067 Button helpButton,help={"Show the help file for reducing event files"} 1061 PopupMenu ERFilesPopup,pos={ 3,45},size={167,19},proc=V_EVR_RedPopMenuProc,title="File to Reduce"1068 PopupMenu ERFilesPopup,pos={sc*3,45*sc},size={sc*167,19*sc},proc=V_EVR_RedPopMenuProc,title="File to Reduce" 1062 1069 PopupMenu ERFilesPopup,help={"The displayed file is the one that will be reduced."} 1063 1070 PopupMenu ERFilesPopup,mode=1,popvalue="none",value= #"root:Packages:NIST:VSANS:Globals:EVRED:gMRedList" 1064 1071 1065 SetVariable ERSlices,pos={ 3,75},size={100,15},title="# of slices"1072 SetVariable ERSlices,pos={sc*3,75*sc},size={sc*100,15*sc},title="# of slices" 1066 1073 SetVariable ERSlices,limits={0,1000,0},value=root:Packages:NIST:VSANS:Globals:EVRED:gNumSlices 1067 1074 1068 SetVariable ERSelSlice,pos={ 150,75},size={100,15},title="current slice"1075 SetVariable ERSelSlice,pos={sc*150,75*sc},size={sc*100,15*sc},title="current slice" 1069 1076 SetVariable ERSelSlice,limits={0,1000,1},value=root:Packages:NIST:VSANS:Globals:EVRED:gCurSlice 1070 1077 SetVariable ERSelSlice,proc=V_ChangeSliceViewSetVar 1071 1078 1072 Button ToSTOButton,pos={ 305,45},size={100,20},proc=V_EVR_LoadAndSTO,title="Load to STO"1079 Button ToSTOButton,pos={sc*305,45*sc},size={sc*100,20*sc},proc=V_EVR_LoadAndSTO,title="Load to STO" 1073 1080 Button ToSTOButton,help={"Load the event file and copy to STO"} 1074 1081 1075 Button TimeBinButton,pos={ 305,75},size={100,20},proc=V_EVR_TimeBins,title="Time Bins"1082 Button TimeBinButton,pos={sc*305,75*sc},size={sc*100,20*sc},proc=V_EVR_TimeBins,title="Time Bins" 1076 1083 Button TimeBinButton,help={"Display the time bins"} 1077 1084 1078 // SetVariable ERList,pos={ 3,48},size={350,13},proc=V_FileNumberListProc,title="File number list: "1085 // SetVariable ERList,pos={sc*3,48*sc},size={sc*350,13*sc},proc=V_FileNumberListProc,title="File number list: " 1079 1086 // SetVariable ERList,help={"Enter a comma delimited list of file numbers to reduce. Ranges can be entered using a dash."} 1080 1087 // SetVariable ERList,limits={-Inf,Inf,1},value= root:Packages:NIST:VSANS:Globals:EVRED:gFileNumList 1081 1088 1082 PopupMenu ERProto_pop,pos={ 3,118},size={119,19},proc=V_EVR_ProtoPopMenuProc,title="Protocol "1089 PopupMenu ERProto_pop,pos={sc*3,118*sc},size={sc*119,19*sc},proc=V_EVR_ProtoPopMenuProc,title="Protocol " 1083 1090 PopupMenu ERProto_pop,help={"All of the data files in the popup will be reduced using this protocol"} 1084 1091 PopupMenu ERProto_pop,mode=1,popvalue="none",value= #"root:Packages:NIST:VSANS:Globals:EVRED:gMRProtoList" 1085 Button ReduceAllButton,pos={ 3,178},size={180,20},proc=V_EVR_ReduceAllSlices,title="Reduce All Slices"1092 Button ReduceAllButton,pos={sc*3,178*sc},size={sc*180,20*sc},proc=V_EVR_ReduceAllSlices,title="Reduce All Slices" 1086 1093 Button ReduceAllButton,help={"This will reduce all slices."} 1087 Button ReduceOneButton,pos={ 3,148},size={180,20},proc=V_EVR_ReduceTopSlice,title="Reduce Selected Slice"1094 Button ReduceOneButton,pos={sc*3,148*sc},size={sc*180,20*sc},proc=V_EVR_ReduceTopSlice,title="Reduce Selected Slice" 1088 1095 Button ReduceOneButton,help={"This will reduce the selected slice."} 1089 1096 1090 Button DoneButton,pos={ 290,178},size={110,20},proc=V_EVR_DoneButtonProc,title="Done Reducing"1097 Button DoneButton,pos={sc*290,178*sc},size={sc*110,20*sc},proc=V_EVR_DoneButtonProc,title="Done Reducing" 1091 1098 Button DoneButton,help={"When done reducing files, this will close this control panel."} 1092 1099 EndMacro -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Menu.ipf
r1243 r1247 14 14 "VSANS Help" 15 15 "-" 16 "Main Control Panel",DoWindow/F Main_VSANS_Panel17 "Data Display",DoWindow/F VSANS_Data18 16 "VCALC",VCALC_Panel() 19 17 "VSANS Preferences",Show_VSANSPreferences_Panel() 18 "-" 19 Submenu "Find Windows" 20 "Data Catalog",DoWindow/F CatVSANSTable 21 "Main Control Panel",DoWindow/F Main_VSANS_Panel 22 "Data Display",DoWindow/F VSANS_Data 23 End 20 24 "-" 21 25 Submenu "Data Panels" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf
r1246 r1247 1755 1755 Edit/W=(180*sc,40*sc,380*sc,550*sc)/HOST=# root:Packages:NIST:VSANS:Globals:Patch:deadTimeWave 1756 1756 ModifyTable width(Point)=30 1757 ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:deadTimeWave)= 801757 ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:deadTimeWave)=110*sc 1758 1758 RenameWindow #,T0 1759 1759 SetActiveSubwindow ## … … 2067 2067 Edit/W=(180*sc,40*sc,580*sc,550*sc)/HOST=# root:Packages:NIST:VSANS:Globals:Patch:calibrationWave 2068 2068 ModifyTable width(Point)=30 2069 ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:calibrationWave)= 702069 ModifyTable width(root:Packages:NIST:VSANS:Globals:Patch:calibrationWave)=100*sc 2070 2070 // the elements() command transposes the view in the table, but does not transpose the wave 2071 2071 ModifyTable elements(root:Packages:NIST:VSANS:Globals:Patch:calibrationWave) = (-3, -2) … … 2436 2436 Edit/W=(180*sc,40*sc,500*sc,370*sc)/HOST=# panelW,xCtr_cm,yCtr_cm 2437 2437 ModifyTable width(Point)=0 2438 ModifyTable width(panelW)= 502439 ModifyTable width(xCtr_cm)= 602440 ModifyTable width(yCtr_cm)= 602438 ModifyTable width(panelW)=70*sc 2439 ModifyTable width(xCtr_cm)=90*sc 2440 ModifyTable width(yCtr_cm)=90*sc 2441 2441 RenameWindow #,T0 2442 2442 SetActiveSubwindow ## -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Protocol_Reduction.ipf
r1246 r1247 2754 2754 ModifyPanel cbRGB=(57346,65535,49151) 2755 2755 SetDrawLayer UserBack 2756 SetDrawEnv fstyle= 1 2756 SetDrawEnv fstyle= 1,fsize=12*sc 2757 2757 DrawText 21*sc,20*sc,"Method of absolute calibration" 2758 2758 Button button0,pos={sc*52,33*sc},size={sc*150,20*sc},proc=V_UserSelectABS_Continue,title="Empty Beam Flux" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_TemperatureSensor.ipf
r1242 r1247 48 48 49 49 50 Window V_SensorGraph() : Graph 50 Proc V_SensorGraph() : Graph 51 52 Variable sc = 1 53 54 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 55 sc = 0.7 56 endif 57 51 58 PauseUpdate; Silent 1 // building window... 52 59 // Display /W=(1500,350,2300,750)/N=V_SensorGraph/K=1 53 60 // ControlBar/L 300 54 Display /W=(600,50,1050,780)/N=V_SensorGraph/K=1 55 ControlBar/T 380 61 62 if(root:Packages:NIST:VSANS:Globals:gLaptopMode == 1) 63 Display /W=(600*sc,50*sc,1050*sc,600*sc)/N=V_SensorGraph/K=1 64 ControlBar/T 300*sc 65 else 66 Display /W=(600,50,1050,780)/N=V_SensorGraph/K=1 67 ControlBar/T 380 68 endif 69 56 70 // ShowTools/A 57 PopupMenu popup0,pos={ 10.00,10.00},size={87.00,23.00},proc=V_WorkFolderPopMenuProc,title="folder"71 PopupMenu popup0,pos={sc*10.00,10.00*sc},size={sc*87.00,23.00*sc},proc=V_WorkFolderPopMenuProc,title="folder" 58 72 PopupMenu popup0,mode=1,popvalue="RAW",value= #"\"RAW;SAM;ABS;\"" 59 PopupMenu popup1,pos={ 10.00,40.00},size={84.00,23.00},proc=V_SensorPopMenuProc,title="sensor"73 PopupMenu popup1,pos={sc*10.00,40.00*sc},size={sc*84.00,23.00*sc},proc=V_SensorPopMenuProc,title="sensor" 60 74 PopupMenu popup1,mode=1,popvalue="pick folder",value= root:Packages:NIST:VSANS:Globals:gSensorFolders 61 TitleBox title0,pos={ 10.00,80.00},size={25.00,19.00},fSize=10,variable=root:Packages:NIST:VSANS:Globals:gSensorMetaData75 TitleBox title0,pos={sc*10.00,80.00*sc},size={sc*25.00,19.00*sc},fSize=10,variable=root:Packages:NIST:VSANS:Globals:gSensorMetaData 62 76 EndMacro 63 77
Note: See TracChangeset
for help on using the changeset viewer.