Ignore:
Timestamp:
Mar 19, 2010 11:55:53 AM (12 years ago)
Author:
srkline
Message:

Tweaks for the installer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/NCNR_Utils.ipf

    r577 r644  
    11441144//between calibrated wavelengths for a given attenuator 
    11451145// 
    1146 // 
     1146// Mar 2010 - abs() added to attStr to account for ICE reporting -0.0001 as an attenuator position, which truncates to "-0" 
    11471147Function LookupAttenNG3(lambda,attenNo) 
    11481148        Variable lambda, attenNo 
    11491149         
    11501150        Variable trans 
    1151         String attStr="root:myGlobals:Attenuators:ng3att"+num2str(trunc(attenNo)) 
     1151        String attStr="root:myGlobals:Attenuators:ng3att"+num2str(trunc(abs(attenNo))) 
    11521152        String lamStr = "root:myGlobals:Attenuators:ng3lambda" 
    11531153         
     
    11881188// local function 
    11891189// 
     1190// Mar 2010 - abs() added to attStr to account for ICE reporting -0.0001 as an attenuator position, which truncates to "-0" 
    11901191Function LookupAttenNG7(lambda,attenNo) 
    11911192        Variable lambda, attenNo 
    11921193         
    11931194        Variable trans 
    1194         String attStr="root:myGlobals:Attenuators:ng7att"+num2str(trunc(attenNo)) 
     1195        String attStr="root:myGlobals:Attenuators:ng7att"+num2str(trunc(abs(attenNo))) 
    11951196        String lamStr = "root:myGlobals:Attenuators:ng7lambda" 
    11961197         
Note: See TracChangeset for help on using the changeset viewer.