Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. 2D chart for VB6

2D chart for VB6

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestionannouncement
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nick Alexeev
    wrote on last edited by
    #1

    Colleagues, Could you recommend a 2D chart control for my application that can work with VB6? I need to plot an EEG signal on the screen in real time. The update rate of the chart will be on the order of 200ms to 1000ms, and I want to display 1000 points. Ideally, the whole chart would scroll to the left as new values are added on the right. I’ve tried the MSChart, it would work ok, but I don’t know how to get rid of flickering. Flickering is a real problem, because somebody will be looking at the chart for hours. Thanks and have a happy new year! - Nick

    M D 2 Replies Last reply
    0
    • N Nick Alexeev

      Colleagues, Could you recommend a 2D chart control for my application that can work with VB6? I need to plot an EEG signal on the screen in real time. The update rate of the chart will be on the order of 200ms to 1000ms, and I want to display 1000 points. Ideally, the whole chart would scroll to the left as new values are added on the right. I’ve tried the MSChart, it would work ok, but I don’t know how to get rid of flickering. Flickering is a real problem, because somebody will be looking at the chart for hours. Thanks and have a happy new year! - Nick

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Have you tried to use DoEvents?

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      N 1 Reply Last reply
      0
      • M Michael Sync

        Have you tried to use DoEvents?

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        N Offline
        N Offline
        Nick Alexeev
        wrote on last edited by
        #3

        No, I haven't tried to use DoEvents. How would that stop the flickering? I suspect that MSChart flickers, because it doesn't do the double buffering.

        M 1 Reply Last reply
        0
        • N Nick Alexeev

          Colleagues, Could you recommend a 2D chart control for my application that can work with VB6? I need to plot an EEG signal on the screen in real time. The update rate of the chart will be on the order of 200ms to 1000ms, and I want to display 1000 points. Ideally, the whole chart would scroll to the left as new values are added on the right. I’ve tried the MSChart, it would work ok, but I don’t know how to get rid of flickering. Flickering is a real problem, because somebody will be looking at the chart for hours. Thanks and have a happy new year! - Nick

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          The MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn. DoEvents won't do anything for you here. In fact, there's nothing you can do about the flickering using the MSChart control.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          N P 3 Replies Last reply
          0
          • D Dave Kreskowiak

            The MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn. DoEvents won't do anything for you here. In fact, there's nothing you can do about the flickering using the MSChart control.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            N Offline
            N Offline
            Nick Alexeev
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            The MSChart control isn't a good candidate for this problem. ... In fact, there's nothing you can do about the flickering using the MSChart control.

            Yes, I can agree that MSChart is not a good tool for this job. I've searched the web for suggestion on how to make good real-time plots with MSChart and tried every suggestion I could find, but the results weren't good enough.

            Dave Kreskowiak wrote:

            You'd be better off using a third party component to draw a scrolling line graph, or making your own control ...

            Unfortunately, I don't have the time to make my own control, although that could be a fun endeavor. Which 3rd party chart controls would you recommend?

            D 1 Reply Last reply
            0
            • D Dave Kreskowiak

              The MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn. DoEvents won't do anything for you here. In fact, there's nothing you can do about the flickering using the MSChart control.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              Dave Kreskowiak wrote:

              MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn.

              I don't think I could agree more.

              "The clue train passed his station without stopping." - John Simmons / outlaw programmer

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                The MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn. DoEvents won't do anything for you here. In fact, there's nothing you can do about the flickering using the MSChart control.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                N Offline
                N Offline
                Nick Alexeev
                wrote on last edited by
                #7

                I chose the RMChart control. It's quite powerful, it has good sample projects for VB6, and it's free. http://www.rmchart.com[^] -Nick

                N 1 Reply Last reply
                0
                • N Nick Alexeev

                  Dave Kreskowiak wrote:

                  The MSChart control isn't a good candidate for this problem. ... In fact, there's nothing you can do about the flickering using the MSChart control.

                  Yes, I can agree that MSChart is not a good tool for this job. I've searched the web for suggestion on how to make good real-time plots with MSChart and tried every suggestion I could find, but the results weren't good enough.

                  Dave Kreskowiak wrote:

                  You'd be better off using a third party component to draw a scrolling line graph, or making your own control ...

                  Unfortunately, I don't have the time to make my own control, although that could be a fun endeavor. Which 3rd party chart controls would you recommend?

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  Don't know. I haven't used any StripGraph controls.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007

                  1 Reply Last reply
                  0
                  • N Nick Alexeev

                    No, I haven't tried to use DoEvents. How would that stop the flickering? I suspect that MSChart flickers, because it doesn't do the double buffering.

                    M Offline
                    M Offline
                    Michael Sync
                    wrote on last edited by
                    #9

                    Nick Alexeev wrote:

                    I suspect that MSChart flickers, because it doesn't do the double buffering.

                    I also think so.. but at least, you can try DoEvent. if it helps, you don't need to change. if not, you need to find the third-party one as other suggested..

                    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                    1 Reply Last reply
                    0
                    • N Nick Alexeev

                      I chose the RMChart control. It's quite powerful, it has good sample projects for VB6, and it's free. http://www.rmchart.com[^] -Nick

                      N Offline
                      N Offline
                      Nick Alexeev
                      wrote on last edited by
                      #10

                      I've been using RMChart for a while now. They are great for static data, but they have problems with fast real-time data (especially when compared to NI Measurement Studio). Here's my thread on the RMChart forum about the real-time issues. It has some benchmark data: http://www.rmchart.com/webpages/forum/forum_posts.asp?TID=400&PN=1[^] I'm switching to NI Measurement Studio for plotting real-time date. - Nick

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups