LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a 2-D Array of Doubles to a binary file in LabView 8.5?

Okay, this is driving me nuts. I got a program that worked fine in LabView 8.0 but refused to write any data after my institute upgraded to LabView 8.5. The data is stored in a 2-D array of doubles and is supposed to be written to a binary file, that has been correctly opened and got a header written to it containing some meta-data of the measurement. But when the doubles from the array should be written to the file, nothing happens. All I get is an (except for the header) empty file of 786 kB. I found out that writing works if I convert the data from the array to singles right before wiring them to the "write to binary file" VI, but for several reasons I need the data as doubles. Can anyone help me? I've tried everything anyone has written here about writing to binary files and more.

Remember, it worked perfectly fine with an older version of LabView. Any ideas?

 

0 Kudos
Message 1 of 5
(2,891 Views)

Can you attach your vi (or at least a screen shot)? I routinely do this, and have not had any problems.

 

Chris

0 Kudos
Message 2 of 5
(2,883 Views)
Hard to advice on this without seeing some code...

Wiebe.


0 Kudos
Message 3 of 5
(2,874 Views)

It is possible that you run into a known memory optimization bug.

 

Try to place an "always copy" primitive as discussed here.

Message Edited by altenbach on 11-18-2008 09:11 AM
Message 4 of 5
(2,857 Views)
It WAS the known bug!! Thank you so much, I feel kind of ashamed for not finding that thread on my own. Now it works perfectly!
0 Kudos
Message 5 of 5
(2,853 Views)