473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

real time graphics and charting

Hi everyone. I just begun programming with visual basic (6.0) and I need to develop an application for monitoring the results on an acquisition system. So I need to output a graph to the screen that will
continuously plot something as time goes forward. So I will
be constantly throwing in new data points, and I want these
data points plotted as soon as I throw them in. I know that there are many professional tools to do such kind of job but I cannot afford to spend hundreds of $ to so it. Furthermore I am trying to learn something and to develop the application myself. Can anyone help me in this regard ? The major problem I have found so far is that the picture kind of blinks when new data are trown in and the picture is updated. I am using standard graphical tools of VB6.0 and drawing curves in XOr mode in order to speed up the window update process... but it does not seem to be enough

Thanks in advance to anyone that will be willing to help me

Fabrizio
Dec 9 '06 #1
3 4607
Killer42
8,435 Expert 8TB
Hi everyone. I just begun programming with visual basic (6.0) and I need to develop an application for monitoring the results on an acquisition system. So I need to output a graph to the screen that will
continuously plot something as time goes forward. So I will
be constantly throwing in new data points, and I want these
data points plotted as soon as I throw them in. I know that there are many professional tools to do such kind of job but I cannot afford to spend hundreds of $ to so it. Furthermore I am trying to learn something and to develop the application myself. Can anyone help me in this regard ? The major problem I have found so far is that the picture kind of blinks when new data are trown in and the picture is updated. I am using standard graphical tools of VB6.0 and drawing curves in XOr mode in order to speed up the window update process... but it does not seem to be enough
Yeah, blinking can be a real problem when doing graphics in VB. One thing you might try is the old double-buffer technique. The idea is that you have two separate copies of the display (presumably two pictureboxes, in VB) and only one is visible at a time. You draw on the one which is hidden, then flip the two. Now that one is displayed, while you draw the next frame on theother one.

Can't recall whether I've ever actually used this technique or not. Most of my VB work is either just playing around, or developing apps for my own use at home or at work, so I end up just living with the flicker.

Incidentally, if you have MS Office then I believe you can use MS Chart from VB. There are probably plenty of other charting/graphing tools available without spending big bucks, but given the time, personally I prefer to do these things myself.

Also, I've just done a quick search on TheScripts for existing posts on the subject, and here's the first couple I found that looked as though they might be relevant. There are bound to be more, I didn't dig very deep.Oh! According to this link, I may have been wrong about needing MS Office.
Dec 10 '06 #2
What you need to do is use DirectX, search for tutorials on DirectX and Visual Basic.

There are plenty to be found. You can do everything you want with DirectX. As menioned by the last posted you should use double buffering or blitting to render the graphic in its entirity to an offscreen bitmap, then blit the entire image to the display once complete.

This is a technique most gamers use. Don't be overwhelmed by the extent of the functionality of DirectX, there is a lot to it, but it can also be quite simple, once you scrape the surface.

The performance is excellent.
Dec 24 '06 #3
http://www.oscilloscope-lib.com/Osc_DLL_VB.zip
just take it.

Speedy performance.
The library makes it possible to show on the beams of the oscilloscope over a million quantization steps of signal per second (on the Pentium III machine) – less than one micro-second is sufficient for one signal sample. This software can be used for linking to real-time controlling programs as longer delays in relay of data to the oscilloscope don’t occur. The relayed data is instantly displayed in beams, the process of their relay and display is deterministic (may be infinite). The relayed data is stored in the oscilloscope memory and can be displayed graphically as beams at any time – without any “solution” such as decimation or excerption, strobe effect and the like. It works regardless of the relay speed.
Mar 13 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: | last post by:
I've trolled the lists, FAQs, and Net as a whole, but can't find anything definitive to answer this. We're looking for real-time graph capability (bar, line, etc), so that we can display...
2
by: JBiagio | last post by:
Hello All, I am attempting to learn a bit about the GDI+ transforms and charting data and I feel like I'm getting a handle on how the transforms work. My chart object has a large "canvas" bitmap...
12
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time...
7
by: Fred Exley | last post by:
I have a traditional application using a database and procedural code that works fine. I'm re-writing it using the OOP methodology, just to see how this may be the better way to do things. I...
5
by: kalyxo | last post by:
Hi all! For one of our web-communities we plan an offer of real time stock quotes incl. advanced notification services. I have the following questions: - Do you know of any services, that...
9
by: Marcos Galaviz | last post by:
How can i make graphics in .NET in a easy way?, can you givme a little of help with this topic? Thanks... and have a nice day ...
2
by: Gabriel | last post by:
Hello, I'm looking for free .NET graphics library ? To display curve for example I searched but all are not free I'd like to find a control who generate a image (from data) and display this...
2
by: wstsoi | last post by:
hi I have to read images from spreadsheet, is it possible to do with php?
2
by: RobcPettit | last post by:
Hi, can anyone suggest how to go about charting. Id like to add a price graph/ma graph and volume chart. My data streems from the internet every second. Ive looked at components but most are out of...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.