When running the import wizard (from asci data files), I set the header and variables to be extracted from the header. This works fine.
I would then like to run a script which takes the variable value, and multiplies it with a column and puts the result in a new column. For example, if the variable is named "T", I tried: wcol(4)=T*wcol(3) This does not work. Is it possible to do this using scripting only?
Origin Ver. and Service Release (Select Help-->About Origin): 8.0 Operating System: Win Vista
The variables you extract from header are saved as string, and you cannot use them directly by their name. You can open Workbook Organizer to see how to access the variables by tree. It should looks like page.info.user.variables.varName$. Supposed there is a variable named TT, you can change the script into:
// Extract the variable, and convert into double double tt = %(page.info.user.variables.TT$); ty "TT is $(tt)"; wcol(3) = tt*wcol(2);