In response to the Grapical GET/SET Bit suggestion on the Idea Exchange, I created this library.
What's this for?
To create a fast, maybe someday universal, library for getting and setting bits in a numeric. It's supposed to be a simple solution to a common problem so you don't have to think about ANDs, ORs, and NOTs.
Features (yeah, seriously)
This library works best in LabVIEW 2010. If you were to save it for LabVIEW 2009 or earlier it would work about 300 times slower.
This is the fastest implementation I could come up with, but then again I didn't try too hard. If you can come up with something faster, let me know and I'll try to incorporate it.
I've attached two files:
Feedback is always welcome.
Notes:
Version 4: Updated Test VI to make sure that inlined code is called every time
Hey,
Nice library. If you were interested just tested on a top spec Dell Precision T3500 (Quad Core Xeon @ 2.8GHz) and managed 1.21 Billion Bit sets per second with your test VI.
I tested it on a T3500 with a quad core Xeon 2.67 and peaked around 900M. I wonder why you got so much better performance. I'll try again when my machine isn't under such a high load.