Ignore:
Timestamp:
Sep 16, 2016 2:37:34 PM (6 years ago)
Author:
srkline
Message:

Updating the patch panel for the VSANS variables, a first pass at including the essential values, and a section that has per-detector values.

Still needs to be fully stress tested to be sure that it does all of read/write operations correctly.

adjusted the "last file loaded" global variable that is displayed on the data display to only update when a file is loaded for display, not when any file is loaded for the catalog, or for the patch panel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_FileCatalog.ipf

    r1003 r1012  
    393393 
    394394        // TODO --  the x and y center have different meaning, since there are multiple panels 
     395        // TODO -- remove the hard-wiring 
     396        String detStr = "FL" 
    395397        //XCenter of beam on detector 
    396398        InsertPoints lastPoint,1,GXCenter 
    397         GXCenter[lastPoint]=123 
     399        GXCenter[lastPoint]=V_getDet_beam_center_x(fname,detStr) 
    398400         
    399401        // TODO --  the x and y center have different meaning, since there are multiple panels 
    400402        //YCenter 
    401403        InsertPoints lastPoint,1,GYCenter 
    402         GYCenter[lastPoint]=321 
     404        GYCenter[lastPoint]=V_getDet_beam_center_y(fname,detStr) 
    403405 
    404406        // TODO -- SDD has no real meaning - since there are multiple distances to report 
    405407        //SDD 
    406408        InsertPoints lastPoint,1,GSDD 
    407         GSDD[lastPoint]=44 
     409        GSDD[lastPoint]=V_getDet_ActualDistance(fname,detStr) 
    408410         
    409411        //wavelength 
Note: See TracChangeset for help on using the changeset viewer.