Ignore:
Timestamp:
Feb 6, 2019 12:25:46 PM (4 years ago)
Author:
srkline
Message:

changes to the USANS procedures to accommodate the re-ordering of the data columns in the raw USANS data that is to be output from NICE, versus what was previously written out by ICP.

A global flag switches between the two reading modes. On startup, the preferences panel is automatically opened to the USANS tab so that the user can immediately set the flag correctly. Currently it defaults to "checked" to read the New data format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf

    r1100 r1122  
    14281428         
    14291429        /// items for USANS Reduction 
    1430          
     1430        val = NumVarOrDefault("root:Packages:NIST:gUseNICEDataFormat", 1 ) 
     1431        Variable/G root:Packages:NIST:gUseNICEDataFormat=val     
    14311432         
    14321433        /// items for everyone 
     
    14941495        gVal = checked 
    14951496End 
     1497 
     1498Function UseNICEDataFormat(ctrlName,checked) : CheckBoxControl 
     1499        String ctrlName 
     1500        Variable checked 
     1501         
     1502        NVAR gVal = root:Packages:NIST:gUseNICEDataFormat 
     1503        gVal = checked 
     1504End 
     1505 
     1506 
    14961507 
    14971508Function PrefDoneButtonProc(ctrlName) : ButtonControl 
     
    15531564 
    15541565//on tab(2) - USANS 
    1555         GroupBox PrefCtrl_2a pos={21,100},size={1,1},title="nothing to set",fSize=12 
    1556  
    1557         GroupBox PrefCtrl_2a,disable=1 
     1566//      GroupBox PrefCtrl_2a pos={21,100},size={1,1},title="nothing to set",fSize=12 
     1567//      GroupBox PrefCtrl_2a,disable=1 
     1568        CheckBox PrefCtrl_2a,pos={21,100},size={171,14},proc=UseNICEDataFormat,title="Read New NICE data format" 
     1569        CheckBox PrefCtrl_2a,help={"Check this if raw data was collected using NICE. If data was collected using ICP, leave this unchecked."} 
     1570        CheckBox PrefCtrl_2a,value= root:Packages:NIST:gUseNICEDataFormat 
     1571 
     1572 
     1573        CheckBox PrefCtrl_2a,disable=1 
     1574 
    15581575 
    15591576 
     
    16111628        return(0) 
    16121629End 
     1630 
     1631 
     1632 
     1633 
     1634 
    16131635 
    16141636 
Note: See TracChangeset for help on using the changeset viewer.