11-15-2013 09:22 AM - edited 11-15-2013 09:22 AM
@Sam_Sharp wrote:
Instead of Build Array, you should pre-initialise your array instead with the required number of elements.
Yes just do remember that after you pre-initialize to use the replace array and not the build array again. It may sound strange but I've seen beginner developers who heard using build array could be bad and to initialize the array to the size they needed. They were not told to replace the elements within this new array and instead just kept on building an array in addition to the initialize array.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-18-2013 10:30 AM
85Mb might sound big, but it's far from full memory so it shouldn't really be a problem, it's rather the handling of data and operations on the text causing copies. There's no In Place element in 7.1, right?
So, you're reading a text file in line more, and reading all at once? Then you should have an array of lines and should be able to work on each and use replace array element. If you read it all as a massive chunk and change the text i assume LV will copy the full modifies text to a new memory location quickly causing problems.
/Y
11-19-2013 05:10 AM
SO: 🙂
- I have replaced my array subset with index array where possible ==> not important changement in my program
- i have replaced a build array in a for loop with one initialize array and insert into array ==> my program become worse than before :'( Before this changement i couldn't open 80Mb file but i could open/read/handle 40Mb file. Now LV put me in wait also for 15Mb files 😞 it don't returns me errors but i have to close LV with ctrl+alt+del
Why? 🙂
finally i have to try with chunking tecnique 🙂
do you have a tutorial or guide that expalin me step by step in which way can i implement this procedure? 🙂 maybe with some exaplems that i can read with LV 7.1
Thanks again
11-19-2013 05:15 AM - edited 11-19-2013 05:17 AM
Hi gigi,
i have replaced a build array in a for loop with one initialize array and insert into array ==> my program become worse than before
Yes, that's true. But no one will suggest to use InsertIntoArray! You should use ReplaceArraySubset on a pre-defined array...
Btw. do you mind to attach your VI or even a picture of the BD?
11-19-2013 05:23 AM
replaced insert into array with ReplaceArraySubset
anyway i obtained not visible improvement 😞
i can't attach my VI sorry....property of the company where i work 😞
what means BD anyway? 😄
11-19-2013 05:50 AM
Hi gigi,
BD is a shortcut for block diagram.
You're not able to create a small VI demonstrating the purpose of your big and company owned program?
You're not able to create and attach a small VI just showing the part of your program you're having problems with?
11-20-2013 04:44 AM
See attached picture (cant insert in IE)
/Y
11-20-2013 05:51 AM
11-20-2013 07:08 AM
yeah....
i changed my thread to try to focalize the point to read in chunks 🙂
here the new link
http://forums.ni.com/t5/LabVIEW/Read-file-in-chunks/td-p/2628857
anyway i tried to put put line mode on and put 1000 on count....i hoped to receive 1000 lines but it didn't happen...i read only the first row
in attachment the image
11-20-2013 02:04 PM
That sounds very strange, it's not just hidden outside the indicator? Try resizing it.
/Y