From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1-D Waveform Array analysis

Solved!
Go to solution

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!

Download All
0 Kudos
Message 1 of 5
(3,121 Views)
Solution
Accepted by KovAcevich7

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.

Message 2 of 5
(3,096 Views)

In order to find the index of that array element, would you use the loop interation counter?

0 Kudos
Message 3 of 5
(3,077 Views)

@KovAcevich7 wrote:

In order to find the index of that array element, would you use the loop interation counter?


Yep


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(3,055 Views)
Solution
Accepted by KovAcevich7

@crossrulz wrote:

@KovAcevich7 wrote:

In order to find the index of that array element, would you use the loop interation counter?


Yep


Kind of:

dmm_digitize.png

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.


"Should be" isn't "Is" -Jay
Message 5 of 5
(3,047 Views)