- Community Home
- :
- Discussion Forums
- :
- Most Active Hardware Boards
- :
- Multifunction DAQ
- :
- How to change the phase by 90 deg of a sine wave

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

03-18-2005 03:11 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi

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

Mal

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

Mal

03-18-2005 11:09 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

d_touch

03-18-2005 12:11 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

You can also just do the math if it is really a sine wave. Use the Pythagorean Theorem.

Randall Pursley

03-21-2005 04:25 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

03-21-2005 05:21 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Sorry, hre is the programme.

03-21-2005 11:12 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Thank you for your post.

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.

Please find a modified version of your VI below.

Regards,

National Instruments | Northern California

03-21-2005 12:09 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

03-21-2005 01:59 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

03-22-2005 04:54 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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.

03-22-2005 11:40 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Randall Pursley