Ignore:
Timestamp:
Nov 2, 2012 1:45:32 PM (10 years ago)
Author:
srkline
Message:

Adding procedures by Matt Wasbrough that allow the data and model fit to be rescaled to different axis scalings both for viewing and export. It is accessed through a check box on the wrapper panel and works on the top window, reascaling whatever is there. Works for a fit, must manually rescale for a coefficient change. Seems right now to be too much work forsetting a dependency.

Help file still needs to be written.

File:
1 edited

Legend:

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

    r800 r873  
    864864        // 4 R*4 values 
    865865        strToExecute = GBLoadStr + "/S=39/U=4" + "\"" + fname + "\"" 
    866         Execute strToExecute 
     866        Execute/Z strToExecute 
    867867        Wave w=$"root:Packages:NIST:RealTime:tempGBWave0" 
    868868        b=4     //num of reals read 
     
    873873        SetDataFolder curPath 
    874874        strToExecute = GBLoadStr + "/S=158/U=4" + "\"" + fname + "\"" 
    875         Execute strToExecute 
     875        Execute/Z strToExecute 
    876876        b=4      
    877877        realw[a,a+b-1] = w[p-a] 
     
    882882        SetDataFolder curPath 
    883883        strToExecute = GBLoadStr + "/S=186/U=2" + "\"" + fname + "\"" 
    884         Execute strToExecute 
     884        Execute/Z strToExecute 
    885885        b=2      
    886886        realw[a,a+b-1] = w[p-a] 
     
    890890        SetDataFolder curPath 
    891891        strToExecute = GBLoadStr + "/S=220/U=6" + "\"" + fname + "\"" 
    892         Execute strToExecute 
     892        Execute/Z strToExecute 
    893893        b=6      
    894894        realw[a,a+b-1] = w[p-a] 
     
    898898        SetDataFolder curPath 
    899899        strToExecute = GBLoadStr + "/S=252/U=13" + "\"" + fname + "\"" 
    900         Execute strToExecute 
     900        Execute/Z strToExecute 
    901901        b=13 
    902902        realw[a,a+b-1] = w[p-a] 
     
    906906        SetDataFolder curPath 
    907907        strToExecute = GBLoadStr + "/S=320/U=3" + "\"" + fname + "\"" 
    908         Execute strToExecute 
     908        Execute/Z strToExecute 
    909909        b=3      
    910910        realw[a,a+b-1] = w[p-a] 
     
    914914        SetDataFolder curPath 
    915915        strToExecute = GBLoadStr + "/S=348/U=7" + "\"" + fname + "\"" 
    916         Execute strToExecute 
     916        Execute/Z strToExecute 
    917917        b=7 
    918918        realw[a,a+b-1] = w[p-a] 
     
    922922        SetDataFolder curPath 
    923923        strToExecute = GBLoadStr + "/S=388/U=4" + "\"" + fname + "\"" 
    924         Execute strToExecute 
     924        Execute/Z strToExecute 
    925925        b=4      
    926926        realw[a,a+b-1] = w[p-a] 
     
    930930        SetDataFolder curPath 
    931931        strToExecute = GBLoadStr + "/S=450/U=2" + "\"" + fname + "\"" 
    932         Execute strToExecute 
     932        Execute/Z strToExecute 
    933933        b=2 
    934934        realw[a,a+b-1] = w[p-a] 
     
    938938        SetDataFolder curPath 
    939939        strToExecute = GBLoadStr + "/S=470/U=2" + "\"" + fname + "\"" 
    940         Execute strToExecute 
     940        Execute/Z strToExecute 
    941941        b=2 
    942942        realw[a,a+b-1] = w[p-a] 
     
    946946        SetDataFolder curPath 
    947947        strToExecute = GBLoadStr + "/S=494/U=5" + "\"" + fname + "\"" 
    948         Execute strToExecute 
     948        Execute/Z strToExecute 
    949949        b=5      
    950950        realw[a,a+b-1] = w[p-a] 
     
    967967        //read in the data 
    968968        strToExecute = "GBLoadWave/O/N=tempGBwave/B/T={16,2}/S=514/Q" + "\"" + fname + "\"" 
    969         Execute strToExecute 
     969        Execute/Z strToExecute 
    970970 
    971971        SetDataFolder curPath           //use the full path, so it will always work 
Note: See TracChangeset for help on using the changeset viewer.