- Timestamp:
- Oct 22, 2009 2:37:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/NCNR_DataReadWrite.ipf
r573 r578 2241 2241 Close refNum 2242 2242 2243 2244 // write out the results into a text file 2245 // SetDataFolder $destStr 2246 WAVE results=results 2247 WAVE/T results_desc=results_desc 2248 2249 //check each wave 2250 If(!(WaveExists(results))) 2251 Abort "results DNExist WriteVAXData()" 2252 Endif 2253 If(!(WaveExists(results_desc))) 2254 Abort "results_desc DNExist WriteVAXData()" 2255 Endif 2256 2257 Save/T results_desc,results as fullpath+".itx" 2258 2259 /////////////////////////////// 2260 2243 2261 // all done 2244 2262 Killwaves/Z tmpFile,dataWRecMarkers … … 2396 2414 // [9] det type "ORNL " (6 chars) 2397 2415 2398 tw[1] = "01-JAN-2009 12:12:12"2416 tw[1] = Secs2Date(DateTime,-2)+" "+ Secs2Time(DateTime,3) //20 chars, not quite VAX format 2399 2417 tw[2] = "SIM" 2400 2418 tw[3] = "[NG7SANS99]" … … 2406 2424 SVAR prefix = root:Packages:NIST:SAS:gSavePrefix 2407 2425 2408 tw[0] = prefix+num2str(index)+".SA2_SIM_A"+num2str(index) 2409 index += 1 2426 2410 2427 2411 2428 String labelStr=" " 2429 Variable runNum = index 2412 2430 Prompt labelStr, "Enter sample label " // Set prompt for x param 2413 DoPrompt "Enter sample label", labelStr 2431 Prompt runNum,"Run Number (automatically increments)" 2432 DoPrompt "Enter sample label", labelStr,runNum 2414 2433 if (V_Flag) 2415 2434 //Print "no sample label entered - no file written" 2416 index -=12435 //index -=1 2417 2436 return -1 // User canceled 2418 2437 endif 2438 2439 if(runNum != index) 2440 index = runNum 2441 endif 2442 index += 1 2443 2444 tw[0] = prefix+num2str(runNum)+".SA2_SIM_A"+num2str(runNum) 2419 2445 2420 2446 labelStr = PadString(labelStr,60,0x20) //60 fortran-style spaces
Note: See TracChangeset
for help on using the changeset viewer.