08-04-2006 11:28 AM
08-04-2006 02:37 PM
08-04-2006 02:40 PM
08-04-2006 02:56 PM
08-04-2006
03:03 PM
- last edited on
11-25-2025
12:08 PM
by
Content Cleaner
You're doing ALOT of the same operation over and over again - so you should think LOOP. Also, there's lots of needless conversions. Here's a quick LV8 cleanup of your code (and yes, it should be modularized, but it's late on Friday
).
And yes, it runs much faster. Your biggest time killer should be in the file opening section (text to number conversion can be time consuming). For VERY large data sets, start thinking about chunking it out.
Here's a GREAT link:
https://forums.ni.com/t5/Example-Code/Managing-Large-Data-Sets-in-LabVIEW/ta-p/4100668
08-04-2006 03:10 PM
I have made a lot of modifications to your VI. Mostly in how the arrays were handled. When i compare mine against yours mine is about 5 times faster. We could also probably improve this If i could figure out what you are trying to do in the for loop (See diagram of my VI)
Another thing move the stop button inside the loop or just remove the loop. Local variables should not be used in this scenario just use wires. Also if you still get a slow down read in your data in chunks so that the arrays do not get so big or initialize the array at the begginning.
You will have more questions no doubt just let me know.
08-04-2006 03:19 PM - edited 08-04-2006 03:19 PM
Message Edited by Jonnie 5 on 08-04-2006 04:20 PM
08-04-2006
03:19 PM
- last edited on
11-25-2025
12:09 PM
by
Content Cleaner
08-04-2006 03:23 PM
Good job Jonnie 5
you just beat me to the punch.
08-04-2006 03:58 PM