03-30-2009 09:30 AM
03-30-2009
10:29 AM
- last edited on
04-26-2026
03:09 PM
by
Content Cleaner
When you say flattened are you referring to having used the Flatten to String function? You can save data straight to binary, without flattening it by using the Write to Binary File function and then read it in VB.NET using a StreamReader object. If your data consists of arrays, be careful about whether or not you prepend the data with the size of the array.
03-30-2009 12:49 PM
03-30-2009 01:32 PM - edited 03-30-2009 01:33 PM
Use the BitConverter class (in System). Pass in your array of bytes (may need to reverse the array depending on how you read them. Example:
(yes, it's in LabVIEW, but the same concept applies in VB.NET, since it's a .NET class)
FYI: the hex values correspond to IEEE-754 representation.