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
 Origin Forum
 strange behavior of get/set command in LabTalk6
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mathias

Germany
5 Posts

Posted - 01/10/2000 :  8:08:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have problems reusing one of my old scripts with Origin 6 (german version). It does the following: I have 6 layers on a plot page, I tune the curves (color, style,...) in the first layer and the script matches the appearance of all othere layers to the first one:
for (I=1;I<=8;I+=1) {
lay -s 1;
get %(I,@D) -c var1;
get %(I,@D) -d var2;
...
lay -s 2;
set %(I,@D) -c var1;
...
}
While this worked well in Origin 4.1, now in 6.0 the get command gives allways var1=1, independently on what color the curve really has. But - very strange - {set %(I,@D) -c 2} really changes the color to red! And after I did this (by script, not by hand!) {get %(I,@D) -c var1} gives correctly var1=2.
It seems LabTalk does not recognize changes of color via the menu.
Does anybody have a workaround?

Mathias

Laurie

USA
404 Posts

Posted - 01/10/2000 :  4:15:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I have been able to reproduce this problem. It appears that it may have been introduced as a result of Origin 6.0's expanded color settings. It has been trackered, so that it can be addressed in the next patch. In the meantime, you will need to set the colors using script. Then, as you say, the get command will return the correct value.

-Laurie
Microcal Technical Support

Go to Top of Page

Laurie

USA
404 Posts

Posted - 03/31/2000 :  12:00:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This has been fixed for Origin 6.0 SR2. Please download the http://www.microcal.com/www/tech/60patch2.asp">patch.
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