08-03-2015 02:03 AM - edited 08-03-2015 02:09 AM
I see.. What can I do to read the full period? The input signal is a continuous sine wave and I aligned both the signal and then minus the phase to find the phase difference.
The phase keeps changing making the phase difference to change too.
08-03-2015 03:13 AM - edited 08-03-2015 03:14 AM
Sorry, they are both different frequency. If I change the frequency of the simulated signal to be the same, the phase will still change. What should I do?
I want to make sure the phase difference is working so when I implement another input signal for voltage, I can find a definite phase difference between the voltage and current signal.
How do I solve this?
08-03-2015 03:51 AM - edited 08-03-2015 03:52 AM
I've tried removing the align 2 signals continuous function and just using the single tone measurement for each signal to find the phase then minus to find the phase difference, with one frequency 50hz and the other 43hz, the phase and phase difference value stayed and did not change. Is it supposed to be like this? Do I have to include the alignment of 2 signals and must the frequency be the same? Sorry, I'm still new and unclear about this.
08-03-2015 03:54 AM
08-03-2015 04:05 AM - edited 08-03-2015 04:30 AM
Here is it! My AC power supply is 50-60hz but I'm getting 16hz from the input signal in labview?
08-03-2015 05:14 AM
Hi lamela,
what's the point of this VI?
- You compare a sine wave consisting of 100 samples with a signal, where you get one (1) sample per iteration. What exactly do you want to compare?
- This one sample is read with max. 20Hz sample rate due to your time delay. Nyquist says: you can detect frequencies up to 10Hz with such a signal. What's the expected frequency of your signal to be measured?
Have you had any lessons on "how to do measurements" at all?
On your VI:
- After all those threads you still aren't able to upload VIs with atleast a little attempt to clean them up…
- All those datatype conversion in your VI look awful…
08-03-2015 10:46 AM
Thanks! I think there is still much for me to learn!
The delay will affect the frequency? If I use another input signal and I compare both the signals, will it work? Because ultimately I'll compare both the input signals to find the phase difference.
The frequency should be 50hz.. How can I fix it?
08-03-2015 11:11 AM
08-03-2015 11:37 AM
Doing phase difference measurements using two completely separate sets of hardware is in general a bad idea. You need to think carefully about how to synchronize the acquisition clocks of the computer vs. the Arduino. Better would be to measure your signal and generate your reference using one system, i.e. every time through the Arduino's outer loop, have it measure the voltage and also generate a reference level based on the internal clock, and transfer both to the computer.
That said, unless you know the signal frequency very precisely a priori, the phase difference between a synthetic reference and a measured signal will inevitably drift with time, at a rate proportional to the difference between the nominal and actual frequencies of the sample signal.
08-06-2015 02:48 AM - edited 08-06-2015 03:08 AM
I'm now using two analog input signals for current & voltage and the phase is still changing? Since it is a resistive load, I should be getting around 0 phase difference and it should be in phase?
I don't think there is anything wrong with the signal but how do I get a definite value for the phase difference? The phase is sometimes changing between the positive and negative. What should I do?