06-19-2017 10:18 AM
High all, I have a voltage waveform that I would like to analyze for a pass fail test. It is a discharge waveform and I have attached a photo of what it looks like. I would like to find the amount of time it takes to discharge to 10v from the max voltage. Any ideas of how I should do this? I am not that experienced with working with arrays in labview.
I have attached the vi i am using to measure the waveform as well.
Thanks!
Solved! Go to Solution.
06-19-2017 11:04 AM
You can try using a for loop. Right click on the for loop and you can make it "conditional" which means you can stop it based on a condition.
For the condition I would do something like (previous value > 10) AND (current value < 10). You can get the previous value by using a shift register.
06-19-2017 12:21 PM
In order to find the index of that array element, would you use the loop interation counter?
06-19-2017 02:03 PM
@KovAcevich7 wrote:
In order to find the index of that array element, would you use the loop interation counter?
Yep
06-19-2017 02:38 PM
@crossrulz wrote:
@KovAcevich7 wrote:
In order to find the index of that array element, would you use the loop interation counter?
Yep
Kind of:
The vi pulls out the dt and y components, searches for the max and then looks for the index where the curve passes through threshold and calculates the discharge duration. The negates are there because threshold array only looks for rising edges.