Changeset 696
- Timestamp:
- Apr 16, 2010 8:58:45 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/AvgGraphics.ipf
r570 r696 69 69 // average the currently displayed data 70 70 SVAR type=root:myGlobals:gDataDisplayType 71 71 NVAR useXMLOutput = root:Packages:NIST:gXML_Write 72 72 73 //Check for logscale data in "type" folder 73 74 String dest = "root:Packages:NIST:"+type … … 125 126 case "Rectangular": 126 127 RectangularAverageTo1D(type) 127 If(doSave) 128 //save the file, acting on the currently displayed file 129 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 128 If(doSave) //save the file, acting on the currently displayed file 129 if (useXMLOutput == 1) 130 WriteXMLWaves_W_Protocol(type,"",1) 131 else 132 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 133 endif 130 134 Endif 131 135 break 132 136 case "Annular": 133 137 AnnularAverageTo1D(type) 134 If(doSave) 138 If(doSave) // XML here yet 135 139 //save the file, acting on the currently displayed file 136 140 WritePhiave_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog … … 142 146 CircularAverageTo1D(type) //graph is drawn here 143 147 If(doSave) 144 //save the file, acting on the currently displayed file 145 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 148 if (useXMLOutput == 1) 149 WriteXMLWaves_W_Protocol(type,"",1) 150 else 151 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 152 endif 146 153 Endif 147 154 break
Note: See TracChangeset
for help on using the changeset viewer.