CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    8

    Angry real time charting..

    Hi. I am working with a simple data acquisition project that reads data once every x seconds, where x is user control (1 to 5 seconds). I would like to graph each data as it is received by VB6 and not have to wait to build an array before graphing. so a sample data (x,y) would be:

    time data
    1 4.5 --> chart on graph
    2 4.4 --> chart on graph
    3 4.3 --> chart on graph
    4 4.4 --> chart on graph

    and so on.

    is there a simple component to do this. MSChart and Excel chart don't.

    Thanks.

  2. #2
    Join Date
    Apr 2009
    Posts
    394

    Re: real time charting..

    Are you wanting to do something like task manager's CPU usage graph, or something that fills and then wipes itself only to redraw itself as new data comes in? Because, I think you could use the picture/forms line method not only to draw the grid but the lines that graph the data...



    Good Luck

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: real time charting..

    Sure. A quick look to draw from point x,y to the next point, then draw a line to connect. Wait a second or two at the end, and refresh.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    Feb 2008
    Posts
    8

    Re: real time charting..

    Hello all. thanks for your feedback. The system I am using tests run time for any flash light. One could die after 4 hours while others will die after 3 days. This run time duration is easily caculated and it will be used as X-axis data. As such, I would like to use a software that automatically update the x-axis data that could contain anywherer from 1000 to 1,000,000 data points. The form/line method is a manual method that could not easily accommodate my requirement. Do you know of any cheap or better still free charting/graphing software? thanks.

  5. #5
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: real time charting..

    Go to planetsourcecode.com and look for Charting - One of the monthly winners a few months back produced a stunning charting system which creates beautiful 3D Bar Charts

    http://www.planet-source-code.com/vb...71430&lngWId=1

    another
    http://www.planet-source-code.com/vb...70778&lngWId=1



    If you need line graphs then search for CHART under VB Classic and you'll find bundles

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured