Results 1 to 8 of 8

Thread: plotting a binary file by using Qwt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: plotting a binary file by using Qwt

    Quote Originally Posted by Alex22 View Post
    I have below numbers in my binary file:

    0001000300020002000300040004000700050001

    green color is time. and it means:

    time | value
    0001 | 0003
    0002 | 0002
    0003 | 0004
    0004 | 0007
    0005 | 0001
    You have 4 Byte time, 4 Byte value and so on.
    Read them and append each to a QVector<double> and use
    QwtPlotCurve::setSamples (const QVector< double > &xData, const QVector< double > &yData)
    to plot it.

  2. The following user says thank you to HappyCoder for this useful post:

    Alex22 (18th November 2015)

Similar Threads

  1. plotting a binary file
    By Alex22 in forum Newbie
    Replies: 1
    Last Post: 7th November 2015, 20:41
  2. Qwtplot3d Plotting file containing 3D points.
    By spikestar in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2012, 23:08
  3. Replies: 19
    Last Post: 11th May 2012, 21:06
  4. Replies: 0
    Last Post: 4th August 2009, 15:24
  5. How to Print a doc file (or binary file) to printer
    By rmagro in forum Qt Programming
    Replies: 15
    Last Post: 5th September 2008, 15:46

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.