Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create phase shift between two arbitrary waveforms?

Hi All,

 

I need your professional suggestion. I am trying to use USB-6218 to output two analog voltage signals of arbitrary waveforms. I use the "Simulate Arbitrary Signal" to define the signal. The attached vi is the one I wrote. In this vi, you'll see one Sample Clock connected to two "Simulate Arbitrary Signal" modules, each has a specific waveform.

 

Now my question is, how can I change the timing of each signal so that I can create a specific phase shift, say, 30 degree, between the two signals? Should I use two Sample Clocks or not? Thank you very much.

0 Kudos
Message 1 of 3
(4,040 Views)

No, you do not want two sample clocks. The two signals need to go out at the same time.

 

Rotate 1D Array is the key. Extract one of the arrays from the signal out lines. Rotate that array and then reconstruct the signal.

 

The modified VI attached here has the DAQ stuff disabled, both because I do not have DAQmx and because it is irrelevant to the phase shifting.

 

There is no need for the sequence structure. Remove it.

 

Lynn

0 Kudos
Message 2 of 3
(4,027 Views)

Dear Johnsold,

 

Thanks a lot for this. I did a pilot test on it, it works well. Thank you!

 

Jason

0 Kudos
Message 3 of 3
(3,993 Views)