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
 Forum for Origin C
 Problem: Automating a Repetitive Routine Tutorial
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gbellidograins

Canada
Posts

Posted - 04/09/2008 :  9:47:38 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: Windows XP
I am unable to run the "Automating a Repetitive Routine" Tutorial of Origin. The Tutorial works well until step #5. In Step #6 I was lost. This step will open a blank Data1 sheet in a new project. Typing in the script window "Process %yTutorial\Sample.txt" causes it to prompt "File not found". I guess the problem is that the C code makes reference to the file "FileName" and so it is unable to read the file "Sample" which is located in a directory "C:\Program Files\OriginLab\Origin75\Tutorial"; not "Tutorial\Sample.txt" as the tutorial suggests.

I would appreciate it very much to get some help.

Thanks.

Echo_Chu

China
Posts

Posted - 04/15/2008 :  04:44:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

In Origin75, %y has been changed to refer to "The full path name to the User Files folder". I am sorry that our document is not updated.

In step6, please use following script insteadly

%a=system.path.program$;
Process %aTutorial\Sample.txt
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