04-21-2014 06:45 PM
I´m having problem with type of signal when I place mean.vi in the block diagram this show me that I need to change the signal. The problem is when I put the sensor to 1 meter distance from arduino the lecture is not stable and if I calculate de averege this is more stable than the indivual lecture. I anyone have a short block diagram to do this please send to me. Thank you.
04-22-2014 12:16 AM
Your code doesn't have a Mean.vi in it. I'm guessing that you might be trying to wire a scalar to the mean function when it only accepts an array. For that VI, you need to have an array of data to take the average of. Alternatively, there is a "Point by Point" average function. You can find it by simply searching the for "mean" on the functions palette.
If that doesn't help, you'll have to explain better what you are trying to do. Also, what is "lecture"?