12-08-2013 04:43 AM
I have very less experience in labview and need some helps. I am currently using Labview 2013.
I am analysing a very big data file. I want to find the values of the local maximum (the peak) in every 1000 data points. Is there anyway to do it?
I also want to have a control on when to start finding the local maximum point (after 10000 data points) and when to end it ( at 30000 data points)
The attachment is a very similar graph of what I am analysing.
Thank you very much.
12-08-2013 06:36 AM
Please, can anyone help?
Do I need to write a C program and then import to labview or I can use the built-in functions from the labview?
Many thanks
12-08-2013 11:29 AM - edited 12-08-2013 11:30 AM
Hi John,
save that Excel spreadsheet as CSV file (form Excel).
The use ReadFromSpreadsheetFile to load the data into LabVIEW. Now you get an array of data and you can do anything with it.
- You might use a loop to pick an ArraySubset of each 1000 datapoints and analyze it.
- You might use numeric controls to provide an input for the user...
Where's your problem? It seems you already know where the goal is...
And try to THINK DATAFLOW! You don't want to analyze data from a graph, you want to analyze spreadsheet data. A graph is just a data sink (in LabVIEW)...
12-08-2013 09:31 PM
Hi GerdW
I have tried your way. I created a sub-array starting from 10246 index of the original array and the length is 1000. I also managed to find the max and min from the array. But I have troubles in the loop function. What loop function should I use and how to connect them? I have tried For loop, but I can only show the first array. How can I tell the computer to do the next iteration from 11246 and so on?
Best regard
John
12-08-2013 09:41 PM
Hi GerdW
I forgot to attach the VI file in the last reply, I have done that in this one.
Thx
12-09-2013 03:21 AM