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
 Automation Tutorial Help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ravinder

India
8 Posts

Posted - 10/21/2004 :  02:44:35 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 7.0 (Select Help-->Tutorial):
Operating System: Windows Xp
Dear all,
I want to learn about Automating the processes in Origin. The best I thought to look in the Help-->Tutorial-->Programming Tutorials-->Automation Example.
After following all the instructions given in the tutorial and finally
running the command Process %yTutorial\Sample.txt from the Script Window. I get the "File Not Found" error. However the file is
infact present in the designated folder.
I am wonder if I am missing something obvious!!!
Could someone please help me sort it out?
Regards,
Ravi

hajo

Germany
Posts

Posted - 10/21/2004 :  04:55:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, Ravi

I tried out the issue you documented in Origin7.5 with the same failure!

Please try the following (type into the scripting window ...):
  • Process %yTutorial\Sample.txt
    this will lead to the file not found error you reported.

  • type %yTutorial\Sample.txt
    shows you the real processed path. %y expands to the Origin User directory NOT as expected in the tutorial to the Origin installation directory where the Tutorial folder is located. So the error message is correct!

  • %a=system.path.program$
    Process %aTutorial\Sample.txt

    This should work!



Maybe you'll find it usefull to have a look at the following Help section:
LabTalk Language Reference -> Overview of the LabTalk Language -> Keywords -> String System Variables

Hope that helps ...
Hajo

--
Dipl.-Ing. Hans-Joerg Koch
SiemensVDO Automotive,
Regensburg, Germany


Edited by - hajo on 10/21/2004 04:55:32 AM

Edited by - hajo on 10/21/2004 04:58:22 AM
Go to Top of Page

easwar

USA
1965 Posts

Posted - 10/21/2004 :  10:38:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ravi and Hajo,

Thank you for bringing this to our attention.

When Origin is installed, by default the User Files folder is set up to be a different folder than the EXE path.

We therefore have a mistake in our tutorial steps because this was done assuming the user files folder and the exe folder are one and the same - it is possible to configure it this way, but not recommended.

We will correct this error in the tutorial.

Thanks,

Easwar
OriginLab

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