LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

10 bit integer

Hi all,

I have a problem with LabView. I have a 10 Bit Integer value.  The Datarange  is from  -512 to 511. How can I make that LV build the two's complement of this 10 Bit Integer value, because I only can declare a 16 Bit Integer value. I hope that somebody can help me.
Thank You!

Greetings from Germany
Juan
0 Kudos
Message 1 of 4
(3,607 Views)
I am far from being an expert in bit computing, but I think the way you should follow is to try to get an array of 10 bit, then add 6 bit at "the appropriate" place in the array so that they don't change your value.

I hope this idea will help you to find a suitable solution, good luck 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(3,595 Views)
You don't really need to do anything special other than perhaps providing data coercion on your numeric controls to limit the values to [-512, 511].  To build the two's complement you can just use the following:


Message Edited by smercurio_fc on 02-21-2006 03:00 PM

0 Kudos
Message 3 of 4
(3,575 Views)
Thank you!

I try tomorrow at work and I will tell you the result!

Best regards!
0 Kudos
Message 4 of 4
(3,557 Views)