05-06-2014 01:52 AM - edited 05-06-2014 02:13 AM
Hello,
I'm having trouble with my VI, I'm trying to place a for loop that does 10 measurements of the input voltage and lists out the average max minimum and mean on graph 2 (obtaining results from graph 1) and depending on the mean result the LED's light up, Yellow (Moderate noise), Red (Fail or too much noise). I'm stuck and not sure how to go about this, would someone be able to guide me? Thank you
05-06-2014 02:34 AM - edited 05-06-2014 02:35 AM
First of all, replace the while-loop with a for-loop with the "10" wired to it.
Then, I think you can detect noise level simplier using primitives instead of the Express VIs
05-06-2014 02:40 AM
thanks for your reply, I'm having trouble understanding your diagram. Can you please elaborate more? 🙂
05-06-2014 03:18 AM - edited 05-06-2014 03:19 AM
Your "data" containes multiple channels. You surely do not want to average all the channels at once, do you? So, select a channel you want to check for noise. Build a mean of the values and find the min and max values. Build limits for your noise: average*3 and average/3. Check whether these limits are within the min and max range and display the output.
05-06-2014 03:44 AM
What is that first block that you put? An array subset?