03-09-2006 06:01 AM
03-09-2006 08:02 AM - edited 03-09-2006 08:02 AM
Message Edited by rpursley8 on 03-09-2006 09:09 AM
03-09-2006 08:17 AM
03-09-2006 12:44 PM
Thanks again for all of the responses. Now things seem a little more clear.
If my signals are not pure sine waves (as Lynn indicated with a speed control Triac or similar), would this make that calculation invalid?
I can see my waveforms possibly having some harmonics.
What if I digitally (with Labview) both waveforms at around 100HZ or something like this? Would that solve the problem?
I'm only interested in the phase angle and rms values.
03-09-2006 01:22 PM
Like Lynn said, use a low pass filter to filter out the harmonics. If you are looking at AC signals (60Hz), set the cutoff frequency to something between the fundamental (60) and the second harmonic (120). After filtering higher frequencies, the signal should be closer to a sine wave. If there is noise at lower frequencies, you may have to filter those out too with a high pass filter. I don't know if there is a bandpass function in Labview, but a low pass filter output going thru a high pass filter will achieve the same effect.
03-09-2006 01:26 PM
03-09-2006 02:49 PM
03-09-2006 03:26 PM
Wow thanks again for the great answers! I'm learning alot!
Yes Lynn, I see now that zero crossing is a bad idea. That was a nice VI by the way.
I had an interesting afternoon, calling a couple of well known power analyzer manufacturers and I got two different answers on how to measure power factor.
Bob, I will put a low pass filter in and try that. I worry that the more VIs or functions I add, the slower the code gets and thus it can't keep up with the FIFO from the FPGA.
Just out of curiosity, do you think this application couuld be done completely on the FPGA?
Jeff
03-09-2006 04:16 PM
03-10-2006 08:18 AM
Thanks again for all the input. After looking things over again, I've decided to use the "extract single tone" function.It appears to clean everything up and works nicely. That same function gives me frequency and phase. Again, I haven't yet tested this on a "noisy" signal. This is my next step.
The strange thing is I don't understand how labview sees frequency. For example, the frequency reported is .006 when I sample at 100 uS. (If I divide .006 by .0001 I get 60 HZ). I just don't understand what they're doing. Also, when using a digital filter, it's as if they're using the term "frequency" inversely. The default high cutoff frequency is .125. This makes no sense to me.
My plan is to start the FPGA FIFO on two channels, read the voltage and amps in 20 ms chunks. I will do five of these reads and have 5 rms, phase, etc.. values. I'll then average them and report an average of these values over 100 ms. (Of course I could also just sample over 100 ms but I want to show that we can also see the peaks of every cycle).
Anyway, I've joined IEEE and I'm going to do some more research. This has been a fun adventure for me. I'm learning alot and I appreciate the help you all have given me!
Jeff