LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary file save - bug in lv8 for MAC ?

Hi,

Using LV8 on Mac OSX, I found a bug concerning binary file saving (attached file).

Write an array of double in a binary file. Read it back.
If you used little endian,ok. If you used Big-endian, result is wrong (but no error).

Could a mac user replicate ?



Boris Matrot
0 Kudos
Message 1 of 8
(3,715 Views)
Boris,

I can confirm your results. LV 8.0 OS X 10.4.4 Dual G5 2.3 GHz. I generated a file containing a two-element array of [0,1]. Then I looked at the file with a hex dump. The big endian file has: 0000 0000 0000 0000 0000 0000 3FF0 0000. The little endian file has: 0000 0000 0000 0000 0000 0000 0000 F03F.

Reading the help file does not give any indication that what you tried to do would not work.

Lynn
0 Kudos
Message 2 of 8
(3,702 Views)
Hi Lynn,

Thanks for your reply. The bug was so huge that I couldn't believe it...!
The bug doesn't concern other data types (single, int32...).

It's "strange" since it applies to Big endian which is the native OSX option. Your test shows the bug concerns data writing (and not data reading).

What could be NI's answer ? patch ? when ?

Boris
0 Kudos
Message 3 of 8
(3,698 Views)
Just as an additional data point, everything works fine under Windows.
 
(As a workaround, have you tried flattening the data for writing? I don't have a MAC, so I cannot test.)

Message Edited by altenbach on 01-19-2006 12:41 PM

0 Kudos
Message 4 of 8
(3,663 Views)
Hi,
 
We are trying to reproduce the problem on a MAC to verify if there is a bug, or normaly.
I let you know, if we have a workaround.
 
Regards,

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 5 of 8
(3,642 Views)
Hello,

We did verify this and sent a bug-report to Research and Development.  We'll keep you informed of the progress, but for now I would try to avoid using it!!

I apologize for any problems that may result from this!

Message Edited by Travis M. on 01-20-2006 11:18 AM

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 6 of 8
(3,628 Views)
Hi Travis,

Thanks for forwarding the bug.

It's problematic for me since my app should be able to deal with old datas, written with a LV7 non-bugged array double write function, and new datas, written with the LV8 bugged function.

How could I rewrite the file after using the "write double array" function ? Could I write directly in the file with a "bit write function" ? Where ?

Regards,

Boris

0 Kudos
Message 7 of 8
(3,613 Views)
 

This was reported to R&D (# 3TIDG800) and was fixed in LabVIEW 8.0.1. 

Thanks!

Travis H.
LabVIEW R&D
National Instruments
Message 8 of 8
(3,468 Views)