05-02-2012 11:03 AM
Hi
i am trying to load data into an array that has an unknown amount of rows.
I've got my code loading my data as i'd like it. Once its loaded as a sheet i can then print it out.
My problem is i don't know how to have multiple lines just adding one to the next with out using a save to file function. The insert to array doesn't seem to work properly.
I've included my code and my small database sample.
I hope someone can help.
05-02-2012 11:17 AM
If you are using Insert into Array, that is the wrong function about 99% of the time. You should be using Build Array.
If you wire a 1-D array into the top, and an element into the bottom, that adds a new element to the end of the 1-D array.
05-02-2012 01:37 PM
This seems to be a continuation of your other questions dealing with this same file.
Considering that you have no Insert Into Array in the VI you posted, I don't understand what you are asking. And even if there were, I still wouldn't understand what you're asking since it makes no sense to me. What exactly are you trying to do?
Side-comments regarding code:
05-02-2012 02:27 PM
Hi
thanks for all of your help. It may be of a similar subject but i have actually managed to get my other code working fine and this is a external program to support aspects of it. I realised what i was doing with the open file, close file was completely off track and also a lot of the defaults are what i was setting up, therefore not required.
Thank you for the adjusted file. You can learn alot from examples and help with Labview so the support is appreciated.
I will try the file in the morning when i arrive at work.