# Multifunction DAQ

cancel
Showing results for
Did you mean:

Highlighted

## How to change the phase by 90 deg of a sine wave

Hi

Does any one know how to change the phase of a sine wave by 90 degrees.

Mal
Message 1 of 12
(2,743 Views)

## Re: How to change the phase by 90 deg of a sine wave

I could not understand what you want. But if you want to change it in software world, you can use LabVIEW. If Express VI in LabVIEW must be really useful. It generate programing code automatically.

d_touch
Message 2 of 12
(2,726 Views)

## Re: How to change the phase by 90 deg of a sine wave

If it's a sine wave that has already been created then just use a Hilbert Transform. If you are creating a sine wave, then you can adjust the phase to whatever you want it to be.

You can also just do the math if it is really a sine wave. Use the Pythagorean Theorem.
Randall Pursley
Message 3 of 12
(2,722 Views)

## Re: How to change the phase by 90 deg of a sine wave

Hi

Thanks. I want to change the phase of a generated sine wave by any value. I have included a sample programme. Can you help me in how to use formula node or array manipulations to change the wave form 90 deg phase.

Thanks

Mal
Message 4 of 12
(2,706 Views)

## Re: How to change the phase by 90 deg of a sine wave

Sorry, hre is the programme.
Message 5 of 12
(2,705 Views)

## Re: How to change the phase by 90 deg of a sine wave

Hi Malkoba,

Having looked at your VI I can say that you have created the correct inputs to the 'Sine Waveform.vi'.

However the dial you had created had no affect as it was not wired into it the 'Sine Waveform.vi' on the block diagram.To fix the problem I have wired the 'Phase' dial into the 'phase' terminal of the waveform generator. This now changes the phase of the sine wave during runtime.

The dial also now has a digital display (numeric box below it)- this can be used to read the dial's value, or feed in specific values into the control.

Regards,
National Instruments | Northern California
Message 6 of 12
(2,685 Views)

## Re: How to change the phase by 90 deg of a sine wave

see attached vi. This vi takes the generated data , creates a phase shifted version of the existing data and plots both sets.
Message 7 of 12
(2,683 Views)

## Re: How to change the phase by 90 deg of a sine wave

Hi

Thanks. I require to change the phase of the wave form array data comming out from the sub vi . Do you know how it can be done with matrix operations or by using a formula node or by any other method.

Thanks

Mal
Message 8 of 12
(2,679 Views)

## Re: How to change the phase by 90 deg of a sine wave

what is included in the array data ?
Y values, Time stamp data ?, DT inf ?

If only the Y data is included, then
estimate the period of the sine wave,
then shift the array data by a fraction of the period.
Message 9 of 12
(2,665 Views)

## Re: How to change the phase by 90 deg of a sine wave

Here is a Hilbert Transform based phase shifter. Remember that if you aren't working with sine waves, phase shift is not the same as a time shift.
Randall Pursley
Message 10 of 12
(2,654 Views)