- Timestamp:
- Oct 29, 2008 1:36:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/COR_Graph.ipf
r404 r433 29 29 if(V_flag==0) 30 30 //draw the blank window and the control bar 31 Display /W=(5,42,450,5 00) /K=131 Display /W=(5,42,450,550) /K=1 32 32 DoWindow/C COR_Graph 33 ControlBar 1 0033 ControlBar 150 34 34 SetVariable gTransWide,pos={210,12},size={135,15},title="Trans - Wide",format="%5.4f" 35 35 SetVariable gTransWide,help={"Average counts on transmssion detector at wide angles"} … … 71 71 ValDisplay valdispEMP,help={"Displays the peak angle the raw EMP data, determined automatically"} 72 72 73 CheckBox check0 title="Log X-axis",proc=LogLinToggleCheckProc 74 CheckBox check0 pos={12,100},value=0,mode=0 75 SetVariable setvar0,pos={210,100},size={120,20},title="Trock/Twide",format="%5.4f" 76 SetVariable setVar0,help={"fraction of unscattered neutrons"} 77 SetVariable setVar0,limits={0,2,0},value= $(USANSFolder+":Globals:MainPanel:gTransRatio") 78 73 79 Legend 74 80 Endif … … 364 370 Variable/G $(USANSFolder+":Globals:MainPanel:gTransRock")=samRock/empRock 365 371 372 TransRatio() //calculate the ratio and update 373 366 374 return(0) 367 375 End … … 403 411 RePlotWithUserAngle(type,newPkAngle) 404 412 End 413 414 Function TransRatio() 415 NVAR tr = root:Packages:NIST:USANS:Globals:MainPanel:gTransRock 416 NVAR tw = root:Packages:NIST:USANS:Globals:MainPanel:gTransWide 417 NVAR rat = root:Packages:NIST:USANS:Globals:MainPanel:gTransRatio 418 419 rat = tr/tw 420 if(rat < 0.9) 421 SetVariable setVar0 labelBack=(65535,32768,32768) 422 else 423 SetVariable setVar0 labelBack=0 424 endif 425 return(0) 426 End 427 428 Function LogLinToggleCheckProc(cba) : CheckBoxControl 429 STRUCT WMCheckboxAction &cba 430 431 switch( cba.eventCode ) 432 case 2: // mouse up 433 Variable checked = cba.checked 434 if(checked) 435 ModifyGraph log(bottom)=1 436 else 437 ModifyGraph log(bottom)=0 438 endif 439 break 440 endswitch 441 442 return 0 443 End 444 405 445 406 446 //returns the peak location found (and used) for zero angle
Note: See TracChangeset
for help on using the changeset viewer.