LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract data points from array

Hi Im sure this isnt a very difficult task, but im not that epxerienced with labview and I've a project which is pretty much based on labview, so here goes.. I'm trying to extract data points form a waveform, all of them have to be treated with same respect, then compare each data point with a set of intervals Iv defined, the data points are ranging from 0-5 volts and Iv developed code to analyse them once they're extracted from the waveform. I just cant extract them, any help would be much appreciated. I've attached my pre existing block diagram. on the diagram I wish to feed in y into the threshold 1d array
0 Kudos
Message 1 of 8
(5,123 Views)

You have extracted them - it's the y array and to perform the analysis, place that code inside the loop. This would perform continuous analysis.

 

p.s. The outer while loop is not needed.

0 Kudos
Message 2 of 8
(5,113 Views)

Thanks for taking the time to look at my problem, I have tried connecting y directly but that wont work because: The type of the source is 1-D array of
double [64-bit real (~15 digit precision)].
The type of the sink is double [64-bit real (~15 digit precision)].

I have to some how take each value from the array and repeat the operation for every single element of the waveform. but I cannot connect the two.

0 Kudos
Message 3 of 8
(5,089 Views)
iv attached the altered font panel, with the code inside the same while loop..
0 Kudos
Message 4 of 8
(5,087 Views)
From the first VI, I thought that it was the array from the DAQ that you wanted to input into the array input of the threshold function. Perhaps that would make sense and if you want multiple thresholds instead of the single that you had in the first VI, put the function inside a for loop and with the threshold array outside, auto-index the array. Be sure to disable autoindexing of the DAQ array when you wire it through the for loop.
0 Kudos
Message 5 of 8
(5,072 Views)
Hi thanks again, I'm sorry but this is confusing me, ok let me reiterate. What I have is a waveform coming in, the information that waveform has is represented by a !-D array of numbers, what I need to do is extract each of those numbers, treating each with same amount of respect, and feed each no. one at at time into the threshold value for the analysis, to figure out if the no. off the waveform is within a certain region defined on the front panel, the purpose of this is so that Labview can tell exactly when the wavefrom passes a certain interval and is then within a different region of values.
0 Kudos
Message 6 of 8
(5,034 Views)
As I said, you are going to have to use a for loop.
0 Kudos
Message 7 of 8
(5,024 Views)
Got it working earlier today, thanks for the help, much appreciated!
0 Kudos
Message 8 of 8
(5,011 Views)