‎11-18-2008 07:44 AM
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?
‎11-18-2008 08:39 AM
Can you attach your vi (or at least a screen shot)? I routinely do this, and have not had any problems.
Chris
‎11-18-2008 09:10 AM
‎11-18-2008 11:10 AM - edited ‎11-18-2008 11:11 AM
It is possible that you run into a known memory optimization bug.
Try to place an "always copy" primitive as discussed here.
‎11-18-2008 11:29 AM