LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding min measurement value at specific setting

Solved!
Go to solution

Hi All,

I am trying to adjust the noise level of a signal.

I can adjust the noise level by sending command to increase or decrease the offset on the device.

after each command sent I am measuring the signal level and comparing it with the previous measurement.

if the current measurement is lower then the previous measurement I continue to increase/decrease the offset.

At some point the noise level will start to increase again. I need to find the lowest point of the measured signal.

 

Any help is very appreciated.

 

Thanks

 

0 Kudos
Message 1 of 4
(2,286 Views)

So what do you have so far?  Sounds like you need a While Loop, a Shift Register to hold the last noise measurement, probably another Shift Register to hold your current setting.  Not sure what more help you need.


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
0 Kudos
Message 2 of 4
(2,272 Views)

Please see my example, I currently able to find if the new value is lower then the old one, but in the example, I stop the script when the measured level is below certain point.

but this is not enough as depending on the Device under test the value might change. 

Therefore I need to stop when the value is the lowest.

 

Note: I dont know what offset value is, I can only increase it or decrease it.

 

I guess I could try to count the iterations when I increase and decrease the value and assign a number, that way I could assign  a value measured to each number and compare them.

0 Kudos
Message 3 of 4
(2,240 Views)
Solution
Accepted by topic author EvaldasK

I have found a solution, I find and store the lowest value then find the bounce when the measurement value stats to increase again. I let it bounce few times then stop it when the value measured is the same as my lowest value measured.

See picture attached.

Maybe it will be helpful for someone.

0 Kudos
Message 4 of 4
(2,183 Views)