LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you convert a 32bit row array to a decimal number?

Hello,
 
I have a 32bit row array that I need to convert to a decimal number.
 
Could someone please help?
0 Kudos
Message 1 of 7
(3,262 Views)

I am not sure what you are asking.

You have an array with 32bit Integers and you want a decimal number? Like an average or something? 

OR you have an array of 1's and 0's with a length of 32, that you want converted into the integer value??

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 2 of 7
(3,256 Views)
Number 2. I have an array of 1's and 0's with a length of 32, that I want to convert into a interger value.
0 Kudos
Message 3 of 7
(3,252 Views)
Use a For loop to index into the array, then use the Not Equal To Zero comparison to convert it to true/false. Then Index out of the For and use the Bool Array to Int from the boolean pallete.
 
Here is an example in 8.2
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 4 of 7
(3,249 Views)

Thank you very  much!

It works great!

0 Kudos
Message 5 of 7
(3,232 Views)
n/m


Message Edited by nickveys on 11-15-2007 04:01 PM
0 Kudos
Message 6 of 7
(3,227 Views)
No need for the For loop. Just wire the array directly to the Not Equal to Zero function.
Message 7 of 7
(3,220 Views)