08-28-2006 09:53 AM
08-29-2006 02:25 PM
Hello.
After looking at your code, the first thing that jumped at me was the fact that you initialize different constants everytime the loop iterates. You can easily initialize the constants outside the loops and wire them to their respective inputs. This should save some time.
Another thing you can do is use the Binary File VIs as opposed to the Text File VIs. These definitely operate much faster as the computer does not have to convert the binary data to ASCII.
Efosa O.
08-29-2006 03:16 PM
Thanks for the tip. I put the constants outside the array and noticed a little improvement in the speed. I know I could improve the speed by using the binary file VI's but I need the files as tab delimited text files to import them into MATLAB for another group to do analysis. I have not had any luck converting binary files into text files. Is there an easy way to do that? I don't know enough about binary file systems to use them. I looked at the high speed data logger examples but they seemed complicated and hard to adapt to what I need to do. Creating the binary header file seemed like a chore.
I am up for more advice on the VI I posted, or suggestions on different ways to convert a binary file to a MATLAB readable text file.
Thanks!
08-29-2006 04:39 PM
Thanks for the post.
You are dealing with a lot of data hence the slowdown.
You can read the Binary Files back in LabVIEW and write them to a text file, but that might also take a while (depending on how big the file is.) At least, this will just write the data from one file to another without doing much other processing.
Efosa O.
NIAE