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
 work command is not working
 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 - 06/27/2011 :  06:05:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.1 and Service Release (Select Help-->About Origin):
Operating System: Win7x64

Hello,

i wrote a script in Origin 7.5 but now with Origin 8.1 it is not working. Here is a part of the Script:

%N=Test;
win -n data %N;
work -c A;
work -t wks.ncols 4;
work -c Gauss;
work -c DS;

What happens after execution? None of the columns has a name (A, Gauss, DS) and the second and thirt column is not assigned to Y (they are assigned to nothing).

Thanks for your help.

Penn

China
644 Posts

Posted - 06/27/2011 :  10:36:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I have run your script in Origin 8.1 in my computer, it works. However, maybe you can try the following script, which does the same thing as your script.

%N=Test;
newbook name:=%N option:=lsname;  // newbook x-function
wks.ncols = 0;  // set column number to zero
wks.addCol(A);  // add A column
wks.addCol(Gauss);  // add Gauss column
wks.addCol(DS);  // add DS column
wks.col1.type = 4;  // set A column to X


Penn
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