The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Problem with mathtool
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SvenP

29 Posts

Posted - 08/18/2011 :  04:00:31 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

SvenP

29 Posts

Posted - 08/19/2011 :  4:52:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000