LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing 2D double precision data to binary file broke upgrading from 8.2.1 to 8.5?

Just to add my woes to this scenario, I had code that I thought would write binary files correctly when the files became too big for excel (about 64k lines). Time, data1, data2 for each line. After many months, I finally had files big enough that they went into binary mode. Unfortunately, all I received were zeros in the data file.

 

When using any type of array manipulation (transpose, index array, array subset, etc.), only zeros were output. Very surprising that this bug crept into 8.5 and still no fixes. What happened to my favorite support company on the planet? Anyway, i have included a simple example. I know it repeats other people's work but another sample might get a company moving to fix this problem.

 

froeh

0 Kudos
Message 21 of 26
(1,224 Views)

Just to add my woes to this scenario, I had code that I thought would write binary files correctly when the files became too big for excel (about 64k lines). Time, data1, data2 for each line. After many months, I finally had files big enough that they went into binary mode. Unfortunately, all I received were zeros in the data file.

 

When using any type of array manipulation (transpose, index array, array subset, etc.), only zeros were output. Very surprising that this bug crept into 8.5 and still no fixes. What happened to my favorite support company on the planet? Anyway, i have included a simple example. I know it repeats other people's work but another sample might get a company moving to fix this problem. The fix with a flattened string worked great. Thanks for those that posted this work-over.

 

froeh

0 Kudos
Message 22 of 26
(1,224 Views)
An simpler fix is the insertion of "always copy" as described. Have you tried?
Message 23 of 26
(1,209 Views)

If I run your example I have 3 files of 4.000.000 bytes with actual data inside it.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 24 of 26
(1,208 Views)

TonP wrote:

If I run your example I have 3 files of 4.000.000 bytes with actual data inside it.


Actually, here too. I guess this got fixed in 8.5.1 😄

0 Kudos
Message 25 of 26
(1,205 Views)

Ok,

 

I have checked into upgrading top LV 8.5.1. Unfortunately, NI has decided to charge for version upgrades that fix problems in their release versions. I will go to 8.6 in the future. I have looked at the"always Copy" function and have included it in the example code attached. It works great and looks better that the "Flatten to String" function but is a little more mysterious because it is so new. It does gets you looking at the "Memory Control" panel however and that is a good thing. Have a great LabVIEW day!

 

Michael 

0 Kudos
Message 26 of 26
(1,175 Views)