Ignore:
Timestamp:
Oct 3, 2012 3:38:23 PM (10 years ago)
Author:
srkline
Message:

more tweaks to the polarization correction. Adjusting control positions on the panels, makeing sure that reverting the fundamental cell parameters really does just that, adding buttons to export/import protocols from the PolCor? panel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationPanels.ipf

    r864 r865  
    159159 
    160160// 
    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 
    162164// 
    163165Function InitPolarizationGlobals() 
     
    165167        SetDataFolder root:Packages:NIST:Polarization:Cells 
    166168         
     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 
    167179        // cell constants 
    168180        String/G gCell_Maverick = "cell=Maverick,lambda=5.0,Te=0.87,err_Te=0.01,mu=3.184,err_mu=0.2," 
     
    275287//      ShowTools/A 
    276288        Button button_0,pos={10,10},size={90,20},proc=AddCellButtonProc,title="Add Cell" 
    277         Button button_1,pos={118,10},size={130,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="?" 
    280292 
    281293         
     
    451463         
    452464 
    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" 
    454466        Button button_2,pos={307,18},size={110,20},proc=ClearDecayWavesButton,title="Clear Table" 
    455467        Button button_3,pos={579,333},size={120,20},proc=ShowCalcRowButton,title="Show Calc" 
Note: See TracChangeset for help on using the changeset viewer.