Search found 9 matches

by fenggy
08 Feb 2012, 10:13
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

Michael,

It doesn't work in my desktop and laptop computers. Windows 7 system are used for this two computers.

fenggy
by fenggy
08 Feb 2012, 10:00
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

The extension rpn is not allowed. I downloaded the defns.rpn file from http://www.aps.anl.gov/Accelerator_Syst ... ware.shtml
by fenggy
08 Feb 2012, 09:53
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

Hello Michael,

Thank you for your help. The files can be used as the test one.

fenggy
by fenggy
08 Feb 2012, 05:55
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

Maybe it is ok about the rpn expression. When I change the lattice file like: ! % 1.46625 2 * sto Labc DL : DRIFT, L= 1.46625 2 * It works well. If the file is modified like: % 2.9325 sto Labc DL : DRIFT, L= "Labc" or like: % 2.9325 sto Labc DL : DRIFT, L= 2.9325 They all don't work. I doubt the val...
by fenggy
08 Feb 2012, 05:26
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

It seems that maybe there is some thing wrong about the percent sign % .
When I change the parameters setting like:
% 1.46625 2 * sto Labc
DL : DRIFT, L= 2.9325
it means parameters of elements are independent on the variable "Labc". But it still doesn't work.
by fenggy
08 Feb 2012, 04:38
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

Hello soliday, Thank you for your advice. I have tested this. There is a little bit difference: 1. (same with you) $ export RPN_DEFNS=/home/fenggy/.defns.rpn $ echo $RPN_DEFNS /home/fenggy/.defns.rpn $ ls -ltr /home/fenggy/.defns.rpn -rwxr-xr-x 1 fenggy Domain users 6622 Aug 22 /home/fenggy/.defns.r...
by fenggy
07 Feb 2012, 11:52
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

Hello, Thank you for your help! I have setting it back to C:\WINDOWS\defns.rpn as you told.But it still doesn't work. When I type echo $RPN_DEFNS I get: C:\WINDOWS\defns.rpn I am guessing the problem is that elegant does not understand the cygwin directory structure. Somewhere in your cygwin shell i...
by fenggy
07 Feb 2012, 11:25
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Re: Definition of rpn expression doesn't work

Hello Michael,

I have checked the file's location. They are shown in the figures bellow:
by fenggy
03 Feb 2012, 06:07
Forum: General
Topic: Definition of rpn expression doesn't work
Replies: 13
Views: 12058

Definition of rpn expression doesn't work

Hello, I wrote a lattice file which includes two lines like this: % 1.46625 2 * sto Labc DL : DRIFT, L="Labc" When I run the program, an error occurred with a warning: unable to open 1.46625 2 * sto Labc in mode r: No such file or directory ensure the RPN_DEFNS environment variable is set I checked ...