I currently have an app that records several temperatures then logs them to a csv file every minute. I am thinking about adding some sort of graphing capability. Which direction should I look to accomplish this? I did a few searches but for some reason it wasnt pulling anything realavent up. Eventually I would want to have it autoscale based on max and min temps, as well as export the graph to a GIF to JPG. Need to figure out the plain graph first...
Does VB.net have anything built in for graphing functions? Linear, quadratic, cubic, log, and absolute value functions would be my main needs. I would want to display the functions on a graph whose x- and y-axes both go from -10 to +10, with grid lines.
I had an assignment that I had done, which has been turned in, I was able to get it to graph, but it when it reaches the right side of the screen it drops off, when it is is adjusted using the velleman controls it jumps back up, hw would I fix this.
Here are the instructon for the assignment:
Write a program tat rads two analog inputs from a velleman board and plots the values on a rotating graph. The number of value plotted horizontally should be specified in a text box. Label the graphs vertical values in at least three places. Print the current voltage reading for each input in it's own lable. The graph should auto scale to fille the graph vertically and horizontally.
The two things that I couldn't get to work is the graph drops off the chart and I was unable to place the vertical values in three places.
Here is my code:
'Date: April 10, 2012 'Progammer: Cathy Hjelm 'Progam: wk8-1
I am trying to create a graph that changes every second and just shows a 3 second history. In my head it would make sense to tie it into the T variable (Time in seconds), so I have form1 outputting T to a text box on form2 and then everytime that textbox changes it graphs the new chart.
The reason I am doing the step ladder approach is because I wanted the numbers to appear under the points as they travel. does this make any sense at all, or am I completely off base?
I recently aqquired VB 2010 Express but have limited programming experience.I am looking for sample code and/or literature which will show me how to plot a Y=f(X) curve - for example code which will plot a straight line, a parabola, etc.I need it as a template from which I can learn about how to build such a graphing program and then tailor one to my needs.
I have a program that is supposed to display a line chart of some values Im reading in from an XML sheet. The function that reads the data into arrays works fine. When I try to graph the values, all I get is a flat line.
I have a graph that shows the balance of any number of individuals' accounts over time. The data is taken from a SQL datatable that contains the Individual's ID, Date&Time, and Account Balance.
The account balances of different individuals are not necessarily recorded at the same times. So for person1 I may have:
So I want to graph the total between these two individuals, but the 'x-value' of their data points don't match up, so I can't simply add up the 'y-values' of corresponding points.
If I wanted to plot points showing the total between accounts, what should I do to achieve this? I would like this to work for not only 2, but any number of individuals.
The first thing I've decided is that I need to set an interval at which the total will be collected: every 10 min, every 1 hour, etc.
If I supply a date/time value as a parameter, how would I retrieve the most recent balance entry from each individual?
I am working on a programing project for my college class. The program is working fine except when it graphs the data on the panel it flickers and doesn't always do it smoothly. I'm sure there are more efficent ways of doing this, but this is what my class specifically wants. Also, it must run on the timer otherwise I would have made it calculate without delay. Here is the
Program Public Class Form1 Dim n As Double Dim myGraphics As System.Drawing.Graphics
I am trying to write a thread safe application that contains 3 threads : -
1 - Data acquisition and decoding 2- Data graphing 3 - FFT and filtering
Thread 1 is collecting bytes from the serial port and converting them int integers (so taking two bytes) after is has captured 64 Bytes and converted into 32 integers, it then needs to pass the array to the graphing thread.
The graphing thread then plots the data and waits for more data.
Thread 3 also waits until thread one has collected 2023 integers and takes these and performs some FFT calculations (which take time).
My question is how do i share the arrays between the three threads without deadlocking the program? as the serial thread will be flying around reasonable fast (1000 bytes per second) so it will synclock onto the shared buffers for most of the time.
Originally i was going to use two synchronised queues, so when thread 1 has collected 32 bytes it queues the data into the graph queue, and once it has collected 2023 it queues the data into the FFT queue.
Then thread 2 and 3 can simple dequeue the data.
However using queues has the overhead of casting the data in and out, and as i know the data type i was planning on using two arrays :-
Dim GraphArray() as ushort Dim FFTArray() as ushort
Then Thread 1 adds data to each thread, and thread 2 and 3 simple wait until the correct amount of data is available before removing the data. my question is there an array type that allows me to remove x amount of data from an array?
Because i cannot do this easily with the ararys defined as above (GraphArray, FFTArray), as i was planning on making them 1mByte and allowing thread 1 to fill them Knowing they should never overflow and then let thread 2 and 3 remove x amout of bytes at a time unless there is a better way of doing it
I have a database that has alarms, times/dates of the alarms, etc. What I am wanting to do is somehow graph the times these alarms come in so I can see where the peak times are for certain alarm types (fire, burglar, communication trouble, etc)