- Timestamp:
- May 22, 2013 10:50:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/BT5_AddFiles.ipf
r857 r910 842 842 843 843 fname = fpath + file1 844 LoadBT5_toWave(f name,tw1,ctTime1,ang11,ang21) //redimensions tw1844 LoadBT5_toWave(file1,fpath,tw1,ctTime1,ang11,ang21) //redimensions tw1 845 845 Print "File 1: time, angle1, angle2",ctTime1,ang11,ang21 846 846 847 847 fname = fpath + file2 848 LoadBT5_toWave(f name,tw2,ctTime2,ang12,ang22) //redimensions tw2848 LoadBT5_toWave(file2,fpath,tw2,ctTime2,ang12,ang22) //redimensions tw2 849 849 Print "File 2: time, angle1, angle2",ctTime2,ang12,ang22 850 850 … … 856 856 DoAlert 0,"Files are not the same length and can't be directly added" 857 857 //Killwaves/Z tw1,tw2,tw3 858 abort 858 859 return(0) 859 860 endif … … 861 862 DoAlert 0,"Files don't start at the same angle and can't be directly added" 862 863 //Killwaves/Z tw1,tw2,tw3 864 abort 863 865 return(0) 864 866 endif … … 866 868 DoAlert 0,"Files don't end at the same angle and can't be directly added" 867 869 //Killwaves/Z tw1,tw2,tw3 870 abort 868 871 return(0) 869 872 endif … … 910 913 DoAlert 0,"Angles don't match and can't be directly added" 911 914 //Killwaves/Z tw1,tw2,tw3 915 abort 912 916 return(0) 913 917 endif … … 984 988 // number of lines in the file is a separate check 985 989 // 986 Function LoadBT5_toWave(fname, tw,ctTime,a1,a2)987 String fname 990 Function LoadBT5_toWave(fname,fpath,tw,ctTime,a1,a2) 991 String fname,fpath 988 992 WAVE/T tw 989 993 Variable &ctTime,&a1,&a2 … … 994 998 String s1,s2,s3,s4,s5,s6,s7,s8,s9,s10 995 999 996 Open/R refNum as fname1000 Open/R/P=bt5PathName refNum as fname 997 1001 998 1002 //read the data until EOF - assuming always a pair or lines
Note: See TracChangeset
for help on using the changeset viewer.