ā05-27-2005 07:56 PM
ā05-28-2005 09:16 AM
ā05-28-2005 10:52 AM - edited ā05-28-2005 10:52 AM

Message Edited by altenbach on 05-28-2005 08:56 AM
ā05-28-2005 11:14 AM - edited ā05-28-2005 11:14 AM

Message Edited by altenbach on 05-28-2005 09:14 AM
ā05-30-2005 08:12 AM
ā05-30-2005 08:14 AM
ā05-30-2005
09:23 AM
- last edited on
ā10-19-2025
01:32 PM
by
Content Cleaner
buldog,
Use a U16 and the 'Swap Bytes' function (Advanced pallette>>Data Manipulation) and you'll get what you want I think (see attached jpg). It's a Big Endian vs Little Endian thing.
You may want to take a look at Writing Binary Files with LabVIEW That Can Be Read by Other Applications even though you're reading.
ā05-30-2005
11:13 AM
- last edited on
ā10-19-2025
01:33 PM
by
Content Cleaner
LabVIEw is always big endian (on any platform), but most other programs are little endian on intel machines (windows). See also the link Donald posted.
Your particular code still has a few bugs. Since you are reading U16, the number of data points is half the number of bytes in the file. You are trying to read twice as many and always get Error 4 (EOF encountered). To avoid this error, you need to divide the bytes by two for reading. Also watch out for correct representations, your record(s) indicator is I32 instead of U16, causing unecessary extra memory usage. ... and don't forget to close your file when done reading. š
Message Edited by altenbach on 05-30-2005 09:19 AM
Message Edited by Support on 05-31-2005 08:59 AM
ā05-30-2005 12:04 PM