Results 1 to 2 of 2

Thread: Generating continuous wave (sine/cos)

  1. #1
    Join Date
    Mar 2009
    Location
    india->gujarat->bhavnagar
    Posts
    36
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Question Generating continuous wave (sine/cos)

    hi,
    i have been working on the continuous generation in sine wave and trying to code the application , its like the continuous wave generated in oscilloscope. Its usually easy to generate one cycle of sine wave...but hard to generate it continuous .

    I have tried a lot but i am exactly not getting the logic behind the continuous generation in sine wave
    Last edited by mind_freak; 20th August 2012 at 18:33. Reason: minor edit

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Generating continuous wave (sine/cos)

    Just generate one cycle and keep appending it at the end of the waveform.
    If parameters of the wave change, generate new cycle and keep appending that.
    if you want the whole thing to move to the left, each time you append a points to the end, also pop point from the beggining.

Similar Threads

  1. Replies: 1
    Last Post: 11th April 2012, 08:50
  2. Replies: 3
    Last Post: 10th August 2011, 17:52
  3. create non continuous vertical bar
    By bibhukalyana in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2011, 11:35
  4. Continuous Printing
    By Prabha in forum General Discussion
    Replies: 0
    Last Post: 28th July 2010, 11:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.