10-19-2020 07:01 AM
Hi GerdW,
This is a useful bit of code. May I please have your permission to use it? Thank you!
Best Regards,
NFarrell
10-19-2020 07:13 AM - edited 10-19-2020 07:16 AM
Hi NFarrell,
@NFarrell wrote:
This is a useful bit of code. May I please have your permission to use it?
Well, after having posted that piece of code 15 years ago for public use I still can grant you permission to use it! 😄
(15 years later I would not use such code anymore, but would use the integer approach as shown by Christian Altenbach. You should do so too.)
09-24-2025 01:04 AM
Hi,
after getting a Kudo for a ~20 year old message I would like to add this: Don't use that old VI anymore!
You can do the same with a single BooleanArrayToNumber node when configuring its output to I16 (or I32) and setting the SignExtensionMode (in the node context menu) to "If output is signed"…
09-24-2025 03:11 PM
@GerdW wrote:
after getting a Kudo for a ~20 year old message I would like to add this: Don't use that old VI anymore!
Hey, it's not my fault that a google search for 'LabVIEW 2s complement' gave me your forum post as the first hit. I was in a hurry! 😛
09-24-2025 05:19 PM
Some more background on sign extension with links to discussions.