LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send a sinusoidal signal to an AO with a fixed phase difference with aother sinusoidal signal from an AI? Thank you!

In a While Loop, read a sinusoidal signal from an AI, extract frequency, amplitude and phase, and send a sinusoidal signal to an AO with a fixed phase difference and same frequency with the AI signal.
 
Thank you very much!
 
Marlon
0 Kudos
Message 1 of 3
(2,703 Views)

    The simplest way I would do it if the system pemits (without RT, FFT, convolution etc)  :

Set AO and AI with the same clock,

Connect two of AO channels with two of AI channels.

Generate AO voltalge ( sin , and cos ) near the expected frequency,record it at AI  together  with your signal.

Multiply your data with sine and cosine data and then integrate the product.

Iterate the frequency till you get maximum integral at one of the channels.

Add the desired phase difference.

_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 2 of 3
(2,695 Views)
add to last message Smiley Happy : Probably instead of iterations it may be usefull to perform  FFT at
the beginning of application. And then to use the integral as some kind of PID controller, to be locked at the phase.
_________________________________________________________________________________________________
LV 8.2 at Windows & Linux


0 Kudos
Message 3 of 3
(2,685 Views)