LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

selecting data for analysis

Solved!
Go to solution

I have a column of conductivity measurements overtime at 1/10 s intervals. In preparation for data analysis I isolate each individual event which begins when at the point dye is introduced to the system, the pulse then travels to the measuring device and the recorded conductivity values increase until they peak and then decline back down again. Finally, the event "ends" when the next pulse is introduced. The problem is that the dye input time was not at regular intervals, so the tails of the events are of varying lengths, thus I need to truncate the data in a more systematic manner.  I would like to truncate the data at a point after the peak, somewhere in the tail when the average of 5 consecutive values are < 0 (I need to specify after the peak because sometimes negative values occur before the peak and I need to keep this information). I think using a while loop and running it until the criteria is reached is the way to do it. But I am not sure how to structure my criteria.

 

thanks

 

PS I am using Labview 8.6

 

 

0 Kudos
Message 1 of 7
(3,461 Views)
Can you post some data and a graph of what you are trying to do? It would make it easier to help with your issue.
Tim
GHSP
Message 2 of 7
(3,435 Views)
I have attached an example of the data from one event. The graph shows a plot of the data and ~ where I would like to truncate it (done in excel). Hope this clarifies things.
Download All
0 Kudos
Message 3 of 7
(3,425 Views)
Solution
Accepted by topic author Jammin
How about something like this? I do not look for it to go below 0 five times instead I look for the peak value and then look for it to cross the zero line going down. You can make it more complicated if you would like.
Tim
GHSP
Message 4 of 7
(3,407 Views)

Check this one out

 

I truncated the arrary at the index where the sum of 5 consecutive numbers are < 0. See if it would work for you.

 

Andy Chang
National Instruments
Message 5 of 7
(3,402 Views)

Thanks Andy and aestet both vi's are very helpful.


0 Kudos
Message 6 of 7
(3,394 Views)

Sorry aeastet left out an "a".


0 Kudos
Message 7 of 7
(3,391 Views)