Origin Version (Select Help-->About Origin): 7.5E
Operating System: Win XP
hello,
i found a strange behaviour. I import some data into a worksheet. then i run a origin c function, which creates a new worksheet, lets say wks2. There it copies some columns from the first worksheet and also creates some new ones which are calculated using different columns of the first wks. finally it does some plots.
One of the calculated columns is calculated as follows:
Dataset dsXRMRQz(wks2,1);
wks2.Columns(1).SetName("qz");
double faktor = 0.001013546246585;
dsXRMRQz=faktor*energy*sin(dsAbsTheta*Pi/180);
energy is set to a value before that call. dsAbsTheta is a Dataset from an column of the first worksheet.
If I run the function, it calculates well the value of the first row. But not the rest! if I run the function a second time it calculates all rows correct. I don't know why :(
The second worksheet is created as follows:
//neues Worksheet zum Arbeiten
Worksheet wks2;
wks2.Create();
wks2.GetPage().Rename("XRMR");
Also if i want to plot a column manually from this second Worksheet it doesn't work. I think this is a different problem ...
Can someone help me??
Thanks in advance
greetings
bubbas
Edited by - bubbas on 10/16/2006 09:20:21 AM