LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Easier way to do this bit manipulation?

I am sure there is a way to do this with some bitwise boolean operation but I can't come up with it. I basically want to just set a specific bit to 0 or 1 and keep the rest the same. Can I do this without all the hoopla I currently have?

 

Sorry the comment on the constant was a reminder in my code to replace it with the actual logic to determine 0 or 1

 

 

 

0 Kudos
Message 1 of 5
(4,449 Views)

I should have looked harder

0 Kudos
Message 2 of 5
(4,438 Views)

SetBit.png

Message 3 of 5
(4,418 Views)

Bit Fiddling.png

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 4 of 5
(4,409 Views)

I missed the set/reset function.

Bit Fiddling 2.png

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 5
(4,406 Views)