LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i convert a array like this into decimal

HEllo

I have an array like this attached file. What can i do that i can change this array in a decimal number. The array means 1111111111111 and this should be change in decimal.

thnaks
0 Kudos
Message 1 of 8
(3,674 Views)

What do you mean by decimal? Do you mean you want to convert from a binary form to a numeric form? And if yes, what type of numeric? A binary representation of a I8 is different that that of a U8, and these are very different from reals (dbl, sgl, etc.). If it is just boolean array to number there is a conversion function on the diagram under "Numeric", "Conversion", that converts from a boolean array to an u32 number. Of course, you will have to index your array of cluster, then convert the cluster to an array, then do the numeric conversion.

 

P.M.

Message Edited by LV_Pro on 09-23-2005 10:23 AM

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 8
(3,664 Views)
I want to convert this array i have attached the i become a number 4095. This is what the array means.
0 Kudos
Message 3 of 8
(3,659 Views)

You will need more "bits" in your boolean array to convert to 4096

P.M.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 8
(3,654 Views)
What's your MSB and what's your LSB?
0 Kudos
Message 5 of 8
(3,640 Views)
LSB is on the first side the highest respected LED's.  And MSB is the lowest of the 4 LED's on the second side.  The two side array forming complete binary array.
0 Kudos
Message 6 of 8
(3,617 Views)

Hi Tumbler,

      Like this?

...

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 7 of 8
(3,612 Views)
Thnak you

that's what i want.

Smiley SurprisedSmiley Very Happy
Smiley Very Happy
0 Kudos
Message 8 of 8
(3,588 Views)