Many times, the 12 bit 2s Complement is not a boolean array, but contained in e.g. a single 16 bit Integer. In this case, you don't need to jump through all these hoops converting to a boolean array, etc.
You can just do the bit operations directly as shown in the attached VI (LabVIEW 7.0). Seems much more efficient. 🙂
(VI is not fully tested, please verify correct operation. You might want to add an error condition if any of bits 13-16 are set).
G# - Award winning reference based OOP for LV, for free! ADDQVIPM Now on GitHub "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."