Ignore:
Timestamp:
Jan 28, 2013 5:23:14 PM (10 years ago)
Author:
srkline
Message:

Changes so that the simulation in SASCALC will work well together - it makes sure that the analysis package is loaded if the simulation checkbox is selected.

File:
1 edited

Legend:

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

    r890 r891  
    166166         
    167167        PlotEC_Empirical(100,0.001,0.7)         // plot an empirical empty cell, only used for the simulation, not needed for SASCALC 
    168         KillTopGraphAndTable(1)                                 // then kill the graph and table that the macro generates 
     168//      KillTopGraphAndTable(1)                                 // then kill the graph and table that the macro generates (but the function is in Wrapper, which is often not loaded 
     169        String topGraph= WinName(0,1)   //this is the topmost graph      
     170        String topTable= WinName(0,2)   //this is the topmost table 
     171        KillWindow $topGraph 
     172        KillWindow $topTable 
     173         
    169174         
    170175        //tick labels for SDD slider 
     
    10231028// 
    10241029// depending on the state of the 2D flag, open the 1d or 2d control panel 
     1030// AND - if doing simulation, check first that the Analysis package is loaded - otheriwse lots of errors 
    10251031Function SimCheckProc(CB_Struct) : CheckBoxControl 
    10261032        STRUCT WMCheckboxAction &CB_Struct 
     
    10281034 
    10291035        if(CB_Struct.checked) 
     1036                if(exists("SANS_ANA_VERSION")!=2)               //if the analysis package is not loaded 
     1037                        // be sure that the SANS Analysis is loaded and compiles 
     1038                        NCNR_AnalysisLoader("Load NCNR Analysis Macros") 
     1039                endif 
     1040                 
    10301041                NVAR do2D = root:Packages:NIST:SAS:gDoMonteCarlo 
    10311042                 
Note: See TracChangeset for help on using the changeset viewer.