RSView SE Expression Help

Jsu0234m

Member
Join Date
Apr 2013
Location
Alabama
Posts
94
I need help understanding what this expression is doing. specifically the (&8192) portion. This is in a visibility animation on a label in RSView SE.



I understand it up until ({#4\ConfigWord} & 8192) but I don't use bitwise operators enough to understand what its doing.



Can anyone help me understand this?



ParmType is a Integer (0-INT, 1-BOOL, 2-REAL, 3-STRING, 4-LIST)

ConfigWord is a Integer


ParmTyp is currently 2 and ConfigWord is 21634 and the label is NOT Visible



if ({#4\ParmType}==2) AND ({#4\ConfigWord} & 8192) then
1
else
0
 
The value 8192 in binary is equivalent to having only bit 14 set. So in your visibility expression ({#\ParmType}==2 AND ({#4\ConfigWord} & 8192) If the config word has bit 14 set AND ParmType==2 the expression will be true "1"
 
8192 is bitwise AND of the 13th bit. So it is just checking the 13th bit.
13th bit if you start your bit count at zero. 14th bit if you start your count at 1.
 
Last edited:

Similar Topics

Hello, I have migrating from Panelview 1200 to Panelview 1400e and have this project import to RSView Studio ME. This project is using for Remote...
Replies
4
Views
3,672
I am trying to do an expression in RSView studio to change the color of an object which will have 3 states. I have done this before using 2 tags...
Replies
7
Views
5,189
Hello fellow wirenuts, I am looking to find the P.B. touch indicator option on version 13.00 and failing. It has been a year or so since I last...
Replies
9
Views
296
Hello, I have converted RSView 32 to FTView SE 14 (I have tested FTView 12 before as well and there were some difficulties so I moved on to...
Replies
4
Views
251
Okay, something I have not seen before.. RSView SE. I am working on an existing project. There is a value the customer wants trended and it is...
Replies
4
Views
809
Back
Top Bottom