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: 

Detect DC Signal Drop

Solved!
Go to solution

IDC Drop have a DC signal that I want to be able to detect if it drops by "x" amount.  How would I accomplish this?  The signal typically rises for an amount of time and then suddenly drops off.  I want to detect that drop.

0 Kudos
Message 1 of 2
(2,354 Views)
Solution
Accepted by topic author edwardt4482

As the data comes in you can compare previous points to new points.  You can come up with some sort of scheme, perhaps a rolling average, etc..

 

You would probably use a loop to store previous values in a shift register, or store an array of five ( or any number) of values and compare averages or first to last, etc....

 

There will need to be a value for the threshold, if the change is <> some threshold then do some action.  If the comparison comes true you can stop the loop.

 

Hard to be specific without some code to know how the measurements are being made and stored.

-------
Mark Ramsdale
-------
Message 2 of 2
(2,349 Views)