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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Automation Tutorial Help

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ravinder Posted - 10/21/2004 : 02:44:35 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 10/21/2004 : 10:38:46 AM
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

hajo Posted - 10/21/2004 : 04:55:09 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000