newbiewannabeG Posted January 15, 2014 Report Share Posted January 15, 2014 (edited) new to labview. im trying to compare a smooth sine wave to a noisy one. i have used the generated signals and tried using a compare data within tolerance. im not sure im going to get the results i want. i wants to show that the noisy one is out of a specified tolerance of the clean one, and then write that to a log file. ive attached what i have so far. any suggestions. obviously this isnt complicated but im learning. this is not for school or anything. just a random idea to get me used to some of the simple stuff. Test Code.vi Edited January 15, 2014 by newbiewannabeG Quote Link to comment
Tim_S Posted January 15, 2014 Report Share Posted January 15, 2014 I don't have LV 2013 loaded, so I wasn't able to open your example. The first thing that comes to mind is to look at the frequency contents using a FFT. Tim Quote Link to comment
newbiewannabeG Posted January 15, 2014 Author Report Share Posted January 15, 2014 I don't have LV 2013 loaded, so I wasn't able to open your example. The first thing that comes to mind is to look at the frequency contents using a FFT. Tim I added a photo of the fucntion im trying to use. Quote Link to comment
hooovahh Posted January 15, 2014 Report Share Posted January 15, 2014 First issue is in state 2 (you should probably use a type def enum) you aren't passing through the bottom dynamic data type wire. This means that the sine wave data is lost and isn't available for the comparison in state 3. If you probe the wire in state 3 you'll see the top wire has data the bottom does not. Also the express VI doesn't seem to be doing what you want either. Instead I like to use the raw numbers and do the comparison my self. This way I can probe along the way and see what is going on. I take the Y and and subtract a range then perform a In Range on the other Y values. Then I say are all in range using the And array function. Test Code Hooovahh Edit.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.