Changeset 216
- Timestamp:
- Nov 30, 2007 10:51:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/SASCalc/trunk/SASCALC.ipf
r187 r216 100 100 Make/O/D/N=5 root:SAS:tickSDDNG3,root:SAS:tickSDDNG7 101 101 Make/O/T/N=5 root:SAS:lblSDDNG3,root:SAS:lblSDDNG7 102 root:SAS:tickSDDNG3 = {133,400,700,1000,131 9}103 root:SAS:lblSDDNG3 = {"133","400","700","1000","131 9"}102 root:SAS:tickSDDNG3 = {133,400,700,1000,1317} 103 root:SAS:lblSDDNG3 = {"133","400","700","1000","1317"} 104 104 root:SAS:tickSDDNG7 = {100,450,800,1150,1530} 105 105 root:SAS:lblSDDNG7 = {"100","450","800","1150","1530"} … … 125 125 Variable/G lambda_t = 5.50 126 126 Variable/G l2r_lower = 132.3 127 Variable/G l2r_upper = 131 9.2127 Variable/G l2r_upper = 1317 128 128 Variable/G lambda_lower = 2.5 129 129 Variable/G lambda_upper = 20.0 … … 281 281 Slider SC_Slider_1,pos={234,45},size={150,45},proc=DetDistSliderProc,live=0 282 282 Slider SC_Slider_1,tkLblRot= 90,userTicks={root:SAS:tickSDDNG3,root:SAS:lblSDDNG3 } 283 Slider SC_Slider_1,limits={133,131 9,1},variable= root:SAS:gDetDist,vert= 0,thumbColor= (1,16019,65535)283 Slider SC_Slider_1,limits={133,1317,1},variable= root:SAS:gDetDist,vert= 0,thumbColor= (1,16019,65535) 284 284 Slider SC_Slider_2,pos={394,21},size={47,65},proc=OffsetSliderProc,live=0,ticks=4 285 285 Slider SC_Slider_2,limits={0,25,1},variable= root:SAS:gOffset,thumbColor= (1,16019,65535) … … 297 297 PopupMenu popup0_1,mode=8,popvalue="1/2\"",value= root:SAS:gApPopStr 298 298 SetVariable setvar0,pos={301,107},size={130,15},title="Det Dist (cm)",proc=SDDSetVarProc 299 SetVariable setvar0,limits={133,131 9,1},value=root:SAS:gDetDist299 SetVariable setvar0,limits={133,1317,1},value=root:SAS:gDetDist 300 300 SetVariable setvar0_1,pos={321,129},size={110,15},title="Offset (cm)",proc=OffsetSetVarProc 301 301 SetVariable setvar0_1,limits={0,25,1},value= root:SAS:gOffset … … 357 357 dlStr = "0.11;0.15;0.34;" 358 358 //detector limits 359 SetVariable setvar0,limits={133,131 9,1}359 SetVariable setvar0,limits={133,1317,1} 360 360 NVAR detDist=root:SAS:gDetDist 361 361 if(detDist < 133 ) 362 362 detDist = 133 363 elseif (detDist > 131 9)364 detDist = 131 9363 elseif (detDist > 1317 ) 364 detDist = 1317 365 365 endif 366 Slider SC_Slider_1,limits={133,131 9,1},userTicks={root:SAS:tickSDDNG3,root:SAS:lblSDDNG3 }366 Slider SC_Slider_1,limits={133,1317,1},userTicks={root:SAS:tickSDDNG3,root:SAS:lblSDDNG3 } 367 367 Slider SC_Slider_1,variable=root:SAS:gDetDist //forces update 368 368 else //ng7 … … 699 699 Wave inten = $("aveint_"+num2str(ct)) 700 700 inten *= offset 701 Print "new offset = ",offset701 // Print "new offset = ",offset 702 702 703 703 ct +=1
Note: See TracChangeset
for help on using the changeset viewer.