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 for Programming
 LabTalk Forum
 Help - Bit wise operations in labtalk?

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
cosy Posted - 03/24/2004 : 08:18:35 AM
Hi,
I have two layers in a graphs and I want a dataset to be displayed in the first or in the second layer depending upon the value of a bit in a dataset.
My code goes like:
(MyData_Data1 is the dataset from which the bit is decoded,
and Mydata_Data2 is the data to be plotted.)
if(MyData_Data1 & 256 == 256)
{
page.active=0;
layer -e MyData_Data2;
page.active=1;
layer -i MyData_Data2;
}
else if(MyData_Data1 & 256 == 512)
{
page.active=1;
layer -e MyData_Data2;
page.active=0;
layer -i MyData_Data2;

}
It doesnt work , whatever the value of the bit,it plots inthe first layer only.

Can any one help me out?
Thanks,
Deepak Samuel.
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 03/24/2004 : 4:04:59 PM
Layer numbering starts with 1 in LabTalk.

page.active=1 or 2; // not 0 or 1

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 03/24/2004 4:05:52 PM

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