Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Phase difference
11-24-2015, 12:47 PM
Post: #8
RE: Phase difference
Well I think I have it sorted now. Its been tough understanding how the libraries work but this is how to do it.

Use 2 x GenricReal components to extract data from the sample buffers
Use an "if" statement to find when the samples cross the horizontal axis. You will get at which sample ID this happens for both Ch1 & Ch2. Exit the loop when the first cross over is detected.
Subtract the sample ID's to get the difference and divide by number of samples for one period of the signal.
Multiply by 360 and you'll get the phase difference.

There needs to be more info in the wiki online to help developers.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Phase difference - fanman - 10-31-2015, 09:27 AM
RE: Phase difference - fanman - 11-03-2015, 08:57 AM
RE: Phase difference - Dave - 11-04-2015, 09:52 PM
RE: Phase difference - fanman - 11-05-2015, 07:12 PM
RE: Phase difference - fanman - 11-08-2015, 03:28 PM
RE: Phase difference - fanman - 11-10-2015, 05:30 AM
RE: Phase difference - Dave - 11-11-2015, 09:34 PM
RE: Phase difference - fanman - 11-24-2015 12:47 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)