| T O P I C R E V I E W |
| Lebecki1 |
Posted - 12/28/2004 : 06:11:03 AM 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
|
| 4 L A T E S T R E P L I E S (Newest First) |
| easwar |
Posted - 12/29/2004 : 10:39:57 AM 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
|
| Lebecki1 |
Posted - 12/29/2004 : 05:05:44 AM 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;
|
| Lebecki1 |
Posted - 12/29/2004 : 03:21:00 AM 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
|
| easwar |
Posted - 12/28/2004 : 11:45:34 AM 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
|