10-17-2019 09:21 AM
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
Solved! Go to Solution.
10-17-2019 09:31 AM
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.
10-17-2019 10:57 AM
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.
10-18-2019 10:07 AM
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.