Origin Ver. and Service Release (Select Help-->About Origin): 8.6
Operating System: WinXP
hi,
i'm new to labtalk etc. so i think the solution to my problem is probably very easy, but i read through the labtalk help and it still won't work.
I want to calculate values (density) in a column depending on the existing of a value in another column (volume). If the sample is a cylinder, i can calculate the density with the mass, diameter and length and the volume column is empty. If not, i can calculate the density by mass/volume. So i tried the "Set values" dialog and put this in the script window:
range rvolume = Col(AE);
range rmass = Col(AA);
range rdiameter = Col(AC);
range rlength = Col(AD);
rcylinder = (rmass / ((rdiameter / 2 ) ^ 2 * pi * rlength * 1000000);
rother = rvolume / rmass * 1000;
if (rvolume > 0) rrho = rother;
else rrho = rcylinder;
then i type "rrho" in the column formula panel, but nothing happens and i don't know why.
What do i do wrong?
thanks,
theresa.