Author |
Topic  |
|
SvenP
29 Posts |
Posted - 08/18/2011 : 04:00:31 AM
|
Origin Ver. 8.5 and Service Release (Select Help-->About Origin): Operating System: Win7 x64
Hello.
I have a problem with the following script line:
mathtool iy1:=(%M_H1,%M_G1) iy2:=(%N_D,%N_Result) operator:=sub oy:=%N_Sub;
It was working well with Origin 8.1. Unfortunately I do not know how to create as output a x- and y-column. But Origin stored the y-values in the Sub-column and added the column addition information with x-start and increment. So I was able to plot the curve.
But know we switched to Origin 8.5 and the column additional information are not created.
How can I solve that problem. Thanks a lot in advance.
Sven |
|
greg
USA
1379 Posts |
Posted - 08/19/2011 : 11:32:51 AM
|
In fact, 8.1 did not CREATE the Sub column either, but both 8.1 and 8.51 will write to the Sub column if it exists already.
You can modify the code to create the sub column if it does not exist already with:
mathtool iy1:=(%M_H1,%M_G1) iy2:=(%N_D,%N_Result) operator:=sub oy:=[%N]1!Sub;
The last argument assumes Sub should be in sheet 1. |
 |
|
SvenP
29 Posts |
Posted - 08/19/2011 : 4:52:51 PM
|
Thanks for your reply Greg. But I think you dit not understand my problem.
I create column Sub with this line: work -c Sub; then this line will be executed mathtool iy1:=(%M_H1,%M_G1b) iy2:=(%N_D,%N_Result) operator:=sub oy:=%N_Sub;
Both, Origin 8.1 and 8.5, write the y-values to column Sub, but there is no column with the x-values. BUT Origin 8.1 creates Column additional information (marked with the "i" with yellow background). And so I am able to plot the difference. AND Origin 8.5 does not create these Column additional information. And now I do not have any x-values and can not plot the difference.
That is my problem. |
 |
|
|
Topic  |
|
|
|