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
 Watch window and Section arguments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Lebecki1

Poland
Posts

Posted - 12/28/2004 :  06:11:03 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi all,

I tried to use watch window as it is described in the Help:
"Watch window does display the values of all entered LabTalk variables including numeric, string, and system variables, section/macro arguments (e.g. %1)".

I did it just to check menu item "Multi-peaks gaussian fitting" - here the %1 parameter shoud be "gauss".
But I got only message like:
Error: symbol "%1" not found.

Did I make any error?

Regards,
K.M. Lebecki

Origin Version (Select Help-->About Origin): 7.5 SR5
Operating System: Win2000

easwar

USA
1965 Posts

Posted - 12/28/2004 :  11:45:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Lebecki,

It is %a and not %1 that holds the name of the function, in this case Gauss. I placed a break point in fit.ogs and added %a to the watch window and could see the value of "Gauss" for %a.

Easwar
OriginLab


Go to Top of Page

Lebecki1

Poland
Posts

Posted - 12/29/2004 :  03:21:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
THX for the answer. This solves the problem.

But tell me: was I wrong (with interpretation of the help file)?
Or rather is the help file weak in that area? You can namely find "%1" in the index, while "%a" is not present...
I simply just learn the system and I want to now the best method to get information - maybe I read the help files in a wrong way?

Regards, Chris

Go to Top of Page

Lebecki1

Poland
Posts

Posted - 12/29/2004 :  05:05:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Even better: if you look into the code, ther you can also find "%1" and not "%a" - see examples (again multi-point fitting):
/* %1 is the argument passed to the macro */
nlsf.func$=%1;



Go to Top of Page

easwar

USA
1965 Posts

Posted - 12/29/2004 :  10:39:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Chris,

My apologies...I did not look into this in detail when I posted.

You found a bug. The variables %1, %2 etc are used to pass arguments to a script section, and these variables are not working with the watch window in Code Builder. We need to fix this. This is trackered as QA#7292 (this is a tracking number from an internal database that we use for bugs and features).

As for %a, it may be some coincidence that in this case %a happened to have the same value as %1 and so I would not recommend relying on that. The bug needs to be fixed to correctly show the value of %1 etc in the watch window.

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