04-16-2010 08:49 AM
Hello,
I have four files that i would like to load data from. The files will contain a days worth of temperature data as well as date and time. I am pulling out the temperature portion and putting it into an array on four separate channels. I am using this vi to pull historic data together and make a simple bitmap of the graph. My load time gets exponentially slower as load time goes by. I was told that initializing the array to all zeros would help with the load time, but that doesn't seem to be the case. Any advice would be much appreciated.
Thanks in advance,
D
04-16-2010 08:55 AM
Check out the links in this tag cloud taht have the word Memory associated with them.
What you want to do is allocate the memory ahead of time and then replace the space allocated with "zeros" with your real data.
Ben
04-16-2010 08:58 AM - edited 04-16-2010 09:02 AM
You are still building up an arrays ( used insert instead of replace , and that array for your graph)
And why are you displaying a new graph for every new timstamp?
I'm not trying to understand what you what to do with all this date conversions .......
I forgot to wait the 10min BEN time to save my answer 😉
04-16-2010 09:02 AM
Henrik,
I wasn't sure how to read the data in from my text file and have it form a time stamp. That is why I reform it into a time stamp from string data. If there is a quicker way to form it and avoid building a new array so that it still works in an XY graph, i'm interested.
04-16-2010 01:46 PM - edited 04-16-2010 01:46 PM
You'd have a lot less code if you just used the Read From Spreadsheet File VI.
As for converting the time information, you can do that with the proper format strings: