ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extra bytes when write to binary file

I get 4 extra bytes when i try to write to binary file in LV 8.2. How can i not include those 4 bytes in the file.
 
Thanks
Ed
 
0 Kudos
Message 1 of 4
(3,220 Views)
There's a flag on the Vi that can be set to prevent the length of array or string to be prepended to the data.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 4
(3,216 Views)
I can't look at your code because I don't have LabVIEW here, but both the flatten to string and the write to binary file functions have a "prepend array size" boolean input. As the name says it will add the array size (I32 I guess) to the string. If you deselect that, the size should be correct.

EDIT: hmm, André was quicker...



Message Edited by dan_u on 11-12-2007 06:07 PM
0 Kudos
Message 3 of 4
(3,213 Views)
Thanks, that is work.
0 Kudos
Message 4 of 4
(3,201 Views)