I've used a very ugly workaround, but get a quite strange (hopefully easy to solve) problem:
with:
// Filename: Custom.ogs
// Purpose: The Custom Routine button on the standard toolbar will use this code, by calling
// the [Main] section
// Modifications:
////////////////////////////////////////////////////////////////////////////////
// Main Code
////////////////////////////////////////////////////////////////////////////////
[Main]
wks.addcol(Times);
wks.col(Times).type = 4;
wks.addcol(Velocity);
wks.col(Velocity).type = 1;
range xx = col(Times);
range yy = col(Velocity);
normalize iy:=(1,2) method:=9 oy:=(xx,yy);
double modalwert = col(2)[1] / col(Velocity)[1];
// Loop on time rows
for(ii = 1, ii <= wks.col(Times).nRows, ii++)
col(Times)[$(ii)]= col(Times)[$(ii)]*0.0303)/(modalwert*1000);
//type -b Modus: $(modalwert);
if(wks.col1.type == 1)
wks.col1.comment$ = Modalwert: $(modalwert);
else if (wks.col2.type == 1)
wks.col2.comment$ = Modalwert: $(modalwert);
wks.col(Times).comment$ = Col $(1) * $(0.0303) durch mode*$(1000);
I nearly have everything covered, but the loop doesn't work!
Same with for(...)
I've tested it, even:
loop(ii, selr1,selr2)
col(selc1)[ii] = col(selc1)[ii]+50;
doesn't change any values in the selected column.
Can any1 help me on this?
It's very urgent and important to me. Especially, because I've wasted much time on this now.