04-06-2010 02:23 PM
I am logging data every 0.5 second to a txt file. When I need to store more values than I have in this VI the structure will be very unclear. Is there a better way for data logging?
Solved! Go to Solution.
04-06-2010 04:27 PM - edited 04-06-2010 04:28 PM
Yes. The "array to spreadsheet string" function is your friend. It's on the "strings" palette.
You have a lot of unnecessary manipulations in your code. You don't need to go from a 1D array (which you unnecessarily resized to a 1D array...why??) to a cluster, which you then unbundle, in order to obtain your data. You can just use the array functions.
Also, that case structure you have -- the one containing the "select" functions -- is just silly.
This
Is exactly the same as this
There were a few other things in there too that didn't make any sense. I've tidied up your code somewhat, eliminated most of your unnecessary operations, etc. Have a look.
Hope this helps,
d