These three pictures are my configuration. Is there any problem with my use?
Software version:2.40 sp2
I can,t use Library Expressions like Bitoperators
-
- Posts: 2
- Joined: Tue Jun 11, 2019 3:25 am
I can,t use Library Expressions like Bitoperators
- Attachments
-
- 3.PNG (151.54 KiB) Viewed 6689 times
-
- 2.PNG (195.54 KiB) Viewed 6689 times
-
- 1.PNG (278.54 KiB) Viewed 6689 times
-
- Posts: 137
- Joined: Mon Jun 11, 2012 2:10 pm
Re: I can,t use Library Expressions like Bitoperators
"(value & 0x1) == 0x1" returns a Boolean value of true or false. My guess is iX is not able to properly convert this back to an integer value and thus returns 0, hence why this value is always blue.
Try removing the == 0x1 portion so the bit0IsSet has the formula "value & 0x1". This will result in an integer value of 0 or 1.
For other bits, you can add a bit shift. Ex: bit1IsSet would have the formula "(value & 0x2) >> 1".
Try removing the == 0x1 portion so the bit0IsSet has the formula "value & 0x1". This will result in an integer value of 0 or 1.
For other bits, you can add a bit shift. Ex: bit1IsSet would have the formula "(value & 0x2) >> 1".
Adam M.
Controls Engineer
FlexEnergy
Controls Engineer
FlexEnergy
-
- Posts: 2
- Joined: Tue Jun 11, 2019 3:25 am
Re: I can,t use Library Expressions like Bitoperators
Thanks for your answer,I later discovered that it can only be used on PCs and not on touch screens.