LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory issues writing binary files, using a subVI to do all File Handling, topVI, when run normally files are way too large.

Problem writing binary files with LV 8.5. I have one VI that does all the interaction/file I/O and another VI for testing. I find when I run the subVI where all the data reading/writing is happening with break points and single stepping through the code all is OK, but when I run normally the files are much larger than they should be and as well when I close the files I get a error. Any insights?  

Walter

0 Kudos
Message 1 of 6
(2,473 Views)

Can you be more specific?  What errors do you see?  Can you share your code?

0 Kudos
Message 2 of 6
(2,471 Views)

Sounds like you have some fast spinning loop in your sub-vi writing way too much.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(2,456 Views)

I have been called out of town, will tidy up code and post when I get back.

0 Kudos
Message 4 of 6
(2,449 Views)

I found the problem, I was actually trying to close the files twice.

 

Thanks

0 Kudos
Message 5 of 6
(2,438 Views)

@Waltz wrote:

I found the problem, I was actually trying to close the files twice.


I don't see how this could cause the symptoms you described in the first post.

 

(It only explains the error on close).

0 Kudos
Message 6 of 6
(2,435 Views)