04-27-2006 01:10 PM
04-28-2006 03:39 PM
05-05-2006 02:07 PM
05-08-2006
04:09 PM
- last edited on
06-25-2024
10:12 AM
by
Content Cleaner
Booleans in LabVIEW are stored as bytes (8 bits) in memory. Doing the math using the numbers you provided, it sounds like everything is working properly. You are obviously correct that byte storage is not the most efficient way to store Boolean numbers, and if memory efficiency is important in your application, you can group together and convert your Booleans into integer numbers so that they can be stored as single bits in memory. You can do this by grouping your Booleans into 32-element arrays and by using the Boolean Array to Number.vi to convert those arrays into 32-bit integers. You can then write these integers to a binary file in which your Boolean values will be represented as single bits. Note that, when reading the file back, you will need to reverse the conversion.
Kind Regards,