Why does this loop for wave assignments not work?
jjweimer
I have perhaps a mild flu and maybe my head is just not right from it. But ... what am I missing here?
Function CreatePseudoLangmuir()
// data folders
DFREF rd = root:rawdata
DFREF an = root:analysis
// local variables with file names
string rdList = "T25;T40;T50;"
string anList = "msvC23;msvC40;mvsC50;"
string therd, thean
variable ic, nt = 3
// process the files
for (ic=0;ic<nt;ic+=1)
therd = StringFromList(ic,rdList)
thean = StringFromList(ic,anList)
WAVE/SDFR=rd wrd = $therd
WAVE/SDFR=an wan = $thean
// equilibrium amount absorbed per amount of resin
wan[][0] = (wrd[p][1] - wrd[p][2])/ wrd[p][0]
// equilibrium concentration
wan[][1] = wrd[p][2]
endfor
return 0
end
// data folders
DFREF rd = root:rawdata
DFREF an = root:analysis
// local variables with file names
string rdList = "T25;T40;T50;"
string anList = "msvC23;msvC40;mvsC50;"
string therd, thean
variable ic, nt = 3
// process the files
for (ic=0;ic<nt;ic+=1)
therd = StringFromList(ic,rdList)
thean = StringFromList(ic,anList)
WAVE/SDFR=rd wrd = $therd
WAVE/SDFR=an wan = $thean
// equilibrium amount absorbed per amount of resin
wan[][0] = (wrd[p][1] - wrd[p][2])/ wrd[p][0]
// equilibrium concentration
wan[][1] = wrd[p][2]
endfor
return 0
end
// data folders
newDataFolder/o/s rawdata
make/o/n=(4,6) T25,T40,T50
SetDataFolder root:
newDataFolder/o/s analysis
Make/o/n=(4,6) msvC23,msvC40,mvsC50
SetDataFolder root:
DFREF rd = root:rawdata
DFREF an = root:analysis
// local variables with file names
string rdList = "T25;T40;T50;"
string anList = "msvC23;msvC40;mvsC50;"
string therd, thean
variable ic, nt = 3
// process the files
for (ic=0;ic<nt;ic+=1)
therd = StringFromList(ic,rdList)
thean = StringFromList(ic,anList)
WAVE/SDFR=rd wrd = $therd
WAVE/SDFR=an wan = $thean
// equilibrium amount absorbed per amount of resin
wan[][0] = (wrd[p][1] - wrd[p][2])/ wrd[p][0]
// equilibrium concentration
wan[][1] = wrd[p][2]
endfor
return 0
end
February 3, 2015 at 05:03 pm - Permalink
February 3, 2015 at 05:09 pm - Permalink
February 3, 2015 at 10:30 pm - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
February 4, 2015 at 06:06 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 5, 2015 at 09:38 am - Permalink
Larry Hutchinson
WaveMetrics
support@WaveMetrics.com
February 5, 2015 at 02:12 pm - Permalink