2D chart for VB6
-
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
-
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
Have you tried to use
DoEvents
?Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Have you tried to use
DoEvents
?Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
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. -
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
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 -
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, 2007Dave 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?
-
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, 2007Dave 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
-
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, 2007I chose the RMChart control. It's quite powerful, it has good sample projects for VB6, and it's free. http://www.rmchart.com[^] -Nick
-
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?
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 -
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.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)
-
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
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