LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data logging to file or xls

Solved!
Go to solution

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?

 

 

0 Kudos
Message 1 of 2
(2,372 Views)
Solution
Accepted by topic author RvG

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

 

why use select here.PNG

Is exactly the same as this

 

same thing.PNG

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

Message Edited by DianeS on 04-06-2010 04:28 PM
0 Kudos
Message 2 of 2
(2,356 Views)