473,387 Members | 1,592 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,387 software developers and data experts.

plot graph real time on vb

3
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 3899
TTCEric
26
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
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
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
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
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
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...
30
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...
6
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...
0
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...
1
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...
1
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...
4
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...
3
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
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.