07-21-2010 10:49 AM
I acquire numeric data from the oscilloscope [reading a waveform] that is stored in one column in a text file.
I need to read in selectable amount of data points to average/plot them.
So basically I wanna have a text file with millions of data points but I wanna plot say only every 1000. data point. I have tried many things I found here on the forum but as I am new to LabView, none of them really worked.
Does anybody have a suggestion.
Thanks.
Solved! Go to Solution.
07-21-2010 12:08 PM
Have you tried reading in the data using the "Read from Spreadsheet File" function (from the file I/O palette)?
Once you have the data in an array it should be pretty straightforward to use the plethora of array functions to accomplish what you need.
Dan
07-21-2010 12:08 PM
Read in a thousand data points using the read file functions, average, then plot. Repeat.
What things did you see and try, but did not work?
07-22-2010 03:32 AM
Hi,
among others I have tried to build the VI below but somehow I cannot get to the desired solution because according to the indicators it always stops after the first loop.
Can you have a look please?
Thanks.
07-22-2010 03:39 AM
07-22-2010 05:38 AM
Hi,
I have changed the code I use read from spreadsheet but something is still wrong and cannot really figure out what...
07-22-2010 05:50 AM
07-22-2010 06:07 AM
hi,
the data file:
07-22-2010 06:10 AM
07-22-2010 06:12 AM
Again...