473,729 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

plot graph real time on vb

3 New Member
Guys, I treally appreciate the way questions are answered on this forum. I hope I get someone to help on this quickly too. :)

I am using vb 2005 and getting data directly from two sensors in two separate rtf text boxes labelled X and Y coordiantes. I now need to plot a graph real time that can get use the values from the rtf boxes to plot the coordinates. The initial reading from the sensors when it is switched on is the original value and set to 0,0 and subsequent values are relative to this.

Can anyone help?
Jul 22 '08 #1
5 3921
TTCEric
26 New Member
on each TextChanged event of your richtextbox, update your graphs drawing surface to plot the values.
if its time-based (which most of them are, I think), use a timer that will consume the values in the rtf.
so for every interval, you'll plot your points on a graph.
or for every textchange. it really depends on how you want to implement.

so, i guess my question to you:
real-time with a time as a measure,
or change as a measure?
Jul 22 '08 #2
9jaguy
3 New Member
on each TextChanged event of your richtextbox, update your graphs drawing surface to plot the values.
if its time-based (which most of them are, I think), use a timer that will consume the values in the rtf.
so for every interval, you'll plot your points on a graph.
or for every textchange. it really depends on how you want to implement.

so, i guess my question to you:
real-time with a time as a measure,
or change as a measure?
tanx for ur response. Its change as a measure. as the position on the x-y axes change, the graph shld update to the new position. as the sensors are built on one block, the dot representing the coordinates on the graph will seem to move in the direction of the sensors.
Jul 22 '08 #3
TTCEric
26 New Member
tanx for ur response. Its change as a measure. as the position on the x-y axes change, the graph shld update to the new position. as the sensors are built on one block, the dot representing the coordinates on the graph will seem to move in the direction of the sensors.
Is your question how this should be represented? if so, id suggest asking your users. There are many ways coordinates can be rendered. For example, as a monitor where coordinates change and previous coordinates are still seen. This alot like echocardiogram you see in hospitals. Or, it can be simple bar that goes up and down or side to side or both. This is like a pulse monitor.
Jul 23 '08 #4
9jaguy
3 New Member
Is your question how this should be represented? if so, id suggest asking your users. There are many ways coordinates can be rendered. For example, as a monitor where coordinates change and previous coordinates are still seen. This alot like echocardiogram you see in hospitals. Or, it can be simple bar that goes up and down or side to side or both. This is like a pulse monitor.
I actually do not want previous coordinates to be seen. Just the new coordinate. To be honest, Im very new at VB and Im just learning how to plot graphs (and that aint going too well too :( ) so Il appreciate any help.
Jul 23 '08 #5
TTCEric
26 New Member
I actually do not want previous coordinates to be seen. Just the new coordinate. To be honest, Im very new at VB and Im just learning how to plot graphs (and that aint going too well too :( ) so Il appreciate any help.
yes, you should look at the point class to understand where on the screen you could indicate the measure on whatever object you are plotting to.
With some GDI+, you could make some decent code. Learning GDI+ is a bit of a curve but certainly worth it in your case.
There are no native/intrinsic graphs in VB.NET that I know of. So, you'll need to mock one up.
Jul 23 '08 #6

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

Similar topics

2
5689
by: ¶}¾Ç¤F¶Ü? | last post by:
I'm trying to write a script to pass a file of stock prices and volumes, and plot the results on a gnuplot graph which is non-overlapped graph. Fig. 1 ------------ Fig. 2 Figure 1 is a graph of stock prices, and Figure 2 is a graph of stock volumes, I'm trying to implement it as following codes,
30
4164
by: nephish | last post by:
Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working ok. I need to make an x y chart for some data that comes in from sensors at different times durring the day. i need it to show the value in the y and the time in the x . no problem so far. But what i cannot get to happen is to scale x (time of the...
6
17694
by: googlinggoogler | last post by:
Hiya, I've got a PIC microcontroller reading me humidity data via rs232, this is in ASCII format. I can view this data easily using hyperterminal or pyserial and convert it to its value (relative humidty with ord(input)) But what im trying to do is plot the data in real time, ideally with pylab - as it looks simple to use and simple is the way i want to go! My code is below, it doesnt show a graph, I was wondering whether
0
1584
by: jatininfo | last post by:
Hi.. I am working on a medical device which will give the various current reading of various types of parameter from patient body like oxygen lavel, breathing, tampature etc, and it's a ventilator, so we are continousally getting live data from this device in the form of XML Stream. Now i need to plot this live data on a running graph means a moving graph, i am able to plot this on a .Net (C# Window application), But now i have to plot this...
1
2049
by: jyothik | last post by:
i want a program that reads a file with 2 columns: - time in minutes for the x axis - value (e.g. temperature, heart freq.) for the y axis Plot the last m minutes, the y axis shall have a range from min...max. Start with parameter values m=5, speed s=1, min=20, max=120. After m=5 minutes, the graphical display shall plot the curve of the last 5 minutes. In other words, you have to implement a sliding window with a 5 minute history....
1
1915
by: jyothik | last post by:
i want a program that reads a file with 2 columns: - time in minutes for the x axis - value (e.g. temperature, heart freq.) for the y axis Plot the last m minutes, the y axis shall have a range from min...max. Start with parameter values m=5, speed s=1, min=20, max=120. After m=5 minutes, the graphical display shall plot the curve of the last 5 minutes. In other words, you have to implement a sliding window with a 5 minute history....
4
3631
by: jyothik | last post by:
i want a program that reads a file with 2 columns: - time in minutes for the x axis - value (e.g. temperature, heart freq.) for the y axis Plot the last m minutes, the y axis shall have a range from min...max. Start with parameter values m=5, speed s=1, min=20, max=120. After m=5 minutes, the graphical display shall plot the curve of the last 5 minutes. In other words, you have to implement a sliding window with a 5 minute history....
3
2509
by: fAnSKyer/C# newbie | last post by:
My problem is use what tool to plot a graph sound wave, which requires a high refresh rate. Or any other approach to solve this problem? Any suggestions Thanks a lot Cheers fAnKa
0
1815
by: mostafijur | last post by:
Hello I want to show continuous graph using Gnu plot. That means after 1 hour I want to see previous every 10 mins graph. Gnu Plot Version: 4.0, Linux kernel: 2.6, UBUNTU I can access Gnu plot using C language in Linux. Is it possible to show scroll bar in Gnu plot graph window to see previous graph?
0
8931
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8767
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9221
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9162
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8165
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4799
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3246
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.