LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bit array

I am also using V8.2, the 4.x data option doesn't appear until you wire a data type to it that would be effected by it. In terms of the data size, all you have to do is take the code I sent and change it do a conventional flatten to string and you see that the result is much larger (29 bytes). Using what I posted you get 26 bits in 4 bytes (plus a 4 byte bit count) I don't know how you would get more compact than that.

Mike...



Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 11 of 14
(1,146 Views)


@Timothy 123 wrote:
and it says that in labview 4.x booleans are treated as 16-bit numerics which is more memory intensive than in newer versions of labview where a boolean is just a single byte (8 bits).

Don't confuse "booleans" and "boolean arrays". We are talking about boolean arrays here where each element occupies only a single bit before LabVIEW 5.0 (check the online help).

You only see the 4.x option if you wire a boolean array.


Message Edited by altenbach on 07-16-2007 09:16 AM

Message Edited by altenbach on 07-16-2007 09:18 AM

Message 12 of 14
(1,148 Views)
Hi mikeporter,

Is the bit count always 4 bytes. How do we determine the bit count for an arbitrarly sized bit stream.

Thank you very much for your replys,

Tim
0 Kudos
Message 13 of 14
(1,114 Views)
Yes it is always 4 bytes, but you don't have to worry about generating it, the flatten to string function does that. Though, as my code demonstrates, you can extract it to look at if you're curious.

Mike...

Message Edited by mikeporter on 07-16-2007 05:44 PM


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 14 of 14
(1,105 Views)