07-26-2009 11:14 AM
I'm using the attached Vi to save data as a text file and was hoping to get a more experienced critique of the VI. If someone has a moment to look at and validate the file write and format I would be very appreciative.
Also if anyone can suggest an easy way to convert this VI so it will stream data to disk Id like to try that at some point.
Thanks
07-26-2009 11:15 AM
07-26-2009 11:53 AM
I would just add a transpose array and time delay in the loop.
The first one to get two columns of data that can be used in Excel (if needed).
The second one to free the processor.
See attached screen shots.
Regarding the streaming, place the write file inside the loop and save all incoming data into one file, multiple files (don't know what you want)....... just wire a unique filename to the "Filepath" connector of the "Save" vi. Date-Time and 'i' value of the loop for example.
How do you want to save data? On file with all the data, one file with each 10000 data points, .....
With a scan rate of 250S/s you can use txt file.
With higher scan rates I would go for binary files.