LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array to cluster booleans? bits?

Solved!
Go to solution

I was trying to *make* a cluster in as little space as possible and tried to build an array of 3 booleans and then use the array to cluster function to make this cluster.  however, it seems that there is some fancy way labview is handling the booleans.  something like an 9-bit thingy?  

 

A long time ago I remember reading about how hardcore CS people interpret bits... little big endianness? I've also seen how labview can convert some integer into a 9-bit thing like this.  

 

Anyways my question is, is it possible to make a "cluster of 3 elements" from 3 boolean constants without having to use "bundle"??

 

Thanks. 

0 Kudos
Message 1 of 12
(3,967 Views)

Hi Engineer,

 

maybe you should do what your nick implies: reading a manual…

 

The help for ArrayToCluster describes the functionality clearly. And it mentions a right-click option to set cluster size… (Doh!)

 

To put it in popular words: READ THE F*** HELP!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(3,950 Views)
Solution
Accepted by topic author BigShotEngineer

The Array to cluster defaults to 9 elements, r-click it to change.

 

(As a side note LV implements booleans as U8, so a byte for each. If you want bit optimization you could mask it all to a single U8 as flags - C-style)

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 12
(3,914 Views)

Ah, fond memories


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 12
(3,902 Views)

what's right click? 😞

0 Kudos
Message 5 of 12
(3,875 Views)

@BigShotEngineer wrote:

what's right click? 😞


...right click with the mouse.  If you right click the array to cluster function you can set the size to something other than 9.

0 Kudos
Message 6 of 12
(3,870 Views)
Using the right click opens up a whole new world for using LabVIEW. If your comment ess serious, you really need to stop what you are doing and take a couple of free tutorials or classes that come with a purchase.
0 Kudos
Message 7 of 12
(3,840 Views)

@Dennis_Knutson wrote:
Using the right click opens up a whole new world for using LabVIEW. If your comment ess serious, you really need to stop what you are doing and take a couple of free tutorials or classes that come with a purchase.

He has to be kidding... I hope.  Because it would mean that he didn't understand how to use Windows with a mouse.  And the name make comments like these totally fair game.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 12
(3,818 Views)
To be fair he could be using a mac with one button.
0 Kudos
Message 9 of 12
(3,812 Views)

Looks like w Windows background.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 10 of 12
(3,806 Views)