Virtuino Forum
How to read a Bit of a variable value - Printable Version

+- Virtuino Forum (https://virtuino.com/forum)
+-- Forum: Virtuino (https://virtuino.com/forum/forumdisplay.php?fid=1)
+--- Forum: Virtuino IoT (https://virtuino.com/forum/forumdisplay.php?fid=2)
+--- Thread: How to read a Bit of a variable value (/showthread.php?tid=1053)



How to read a Bit of a variable value - chris - 09-12-2022

I want to read one or more Bits of an incomming value.
The value is in integer format.
How to do this?


RE: How to read a Bit of a variable value - iliaslamprou - 09-12-2022

Hi,

you have to go to the "Scripts and Tools" window.
Then add a "Bit Converter"

Select as the input the incomming variable.

Then select a new variable in which you want to write the bit.

On the bit order drop down list select the bit you want to extract from the variable.
Thats all.

I have created a video for this question.
https://youtu.be/RK-vXxQ9Bc0