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
 Origin Forum
 strange behavior of get/set command in LabTalk6

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
Mathias Posted - 01/10/2000 : 8:08:00 PM
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

2   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 03/31/2000 : 12:00:00 PM
This has been fixed for Origin 6.0 SR2. Please download the http://www.microcal.com/www/tech/60patch2.asp">patch.
Laurie Posted - 01/10/2000 : 4:15:00 PM
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


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