Ignore:
Timestamp:
Apr 9, 2010 4:30:03 PM (13 years ago)
Author:
ajj
Message:
  • Move determination of next/prev RAW filename to Facility functions (NCNR_Utils.ipf)
  • Function added is GetPrevNextRawFile?()
File:
1 edited

Legend:

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

    r570 r680  
    209209        Variable increment 
    210210 
     211        Variable i 
     212        String filename 
    211213        //take the currently displayed RAW file (there is only one name in fileList) 
    212214        SVAR oldName = root:Packages:NIST:RAW:fileList 
    213215         
    214         //get the run number 
    215         Variable num = GetRunNumFromFile(oldName) 
    216          
    217         //increment 
    218         num += increment 
    219          
    220         //find the next specified file by number 
    221         String fileName = FindFileFromRunNumber(num) 
    222         if(cmpstr(fileName,"")==0) 
    223                 //null return, do nothing 
    224                 Return(1) 
    225         Endif 
     216        print oldName 
     217         
     218        filename = oldname 
     219        for (i = 0; i < abs(increment); i += 1) 
     220                filename = GetPrevNextRawFile(filename,increment/abs(increment)) 
     221        endfor   
     222         
     223        print filename 
    226224         
    227225        // display the specified RAW data file 
Note: See TracChangeset for help on using the changeset viewer.