Ignore:
Timestamp:
Sep 7, 2007 4:59:29 PM (15 years ago)
Author:
srkline
Message:

Added fit reporting (just the basics) to write the results to the panel. Simply changes the title of GroupBox? elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Packages/Wrapper.ipf

    r160 r161  
    2323        GroupBox grpBox_0,pos={18,11},size={350,113} 
    2424        GroupBox grpBox_1,pos={386,10},size={247,113} 
     25        GroupBox grpBox_2 title="No Fit",pos={10,130},size={620,1},frame=0,fSize=10,fstyle=1,fColor=(39321,1,1) 
     26        GroupBox grpBox_3 title="",pos={10,150},size={620,1},frame=0,fSize=10,fstyle=1,fColor=(39321,1,1) 
    2527        Button button_0,pos={523,93},size={100,20},proc=DoTheFitButton,title="Do The Fit" 
    2628        Button button_1,pos={270,57},size={80,20},proc=PlotModelFunction,title="Plot" 
     
    562564        WAVE w_sigma 
    563565        print w_sigma 
    564          
    565  
     566        String resultStr="" 
     567                 
     568        //now re-write the results 
     569        sprintf resultStr,"Chi^2 = %g  Sqrt(X^2/N) = %g",V_chisq,sqrt(V_chisq/V_Npnts) 
     570        resultStr = PadString(resultStr,63,0x20) 
     571        GroupBox grpBox_2 title=resultStr 
     572        ControlUpdate/W=WrapperPanel grpBox_2 
     573        sprintf resultStr,"FitErr = %s : FitQuit = %s",W_ErrorMessage(V_FitError),W_QuitMessage(V_FitQuitReason) 
     574        resultStr = PadString(resultStr,63,0x20) 
     575        GroupBox grpBox_3 title=resultStr 
     576        ControlUpdate/W=WrapperPanel grpBox_3 
     577         
    566578        Variable yesSave=0,yesReport=0 
    567579        ControlInfo check_4 
Note: See TracChangeset for help on using the changeset viewer.