ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot phase difference

I have calculated phase difference of two waveforms by this process.

 

http://decibel.ni.com/content/docs/DOC-2135

 

but I have to plot the result in a sinusoidal waveform.

can you give me any idea how to do this..

 

-Konica

 

0 Kudos
Message 1 of 11
(6,905 Views)
Are you asking how to generate the sine waves or how to put both of them on the same graph?
Tim
GHSP
0 Kudos
Message 2 of 11
(6,883 Views)
Here ia a simple example that works with the orginal vi.
Tim
GHSP
0 Kudos
Message 3 of 11
(6,881 Views)
Thanks a lot. but I cant open the example.vi because my version is labview8.5.
0 Kudos
Message 4 of 11
(6,843 Views)

Hello,

I saw your code. actually I can calculate phase defference of two waveforms. but my question is, I am calculating phase differences of a continous waveform, so it returns no of phase differences, I have to plot them with no of samples, how to do this? have you any idea?

0 Kudos
Message 5 of 11
(6,828 Views)
Do you want to go pint by point with the difference from two wave forms and plot the difference for each point?
Tim
GHSP
0 Kudos
Message 6 of 11
(6,814 Views)
yes, its like this...
0 Kudos
Message 7 of 11
(6,801 Views)

I took the Y-axis values(phase differences in degree) in an array, but dont understand what to do for the X-axis value. I have  no of sample = 1000.

 

0 Kudos
Message 8 of 11
(6,799 Views)
You can do this.
Tim
GHSP
Download All
0 Kudos
Message 9 of 11
(6,789 Views)
I would also look at a "Lissajous" plot.
0 Kudos
Message 10 of 11
(6,785 Views)