Graphing Functions In VB?

Mar 7, 2010

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.

View 1 Replies


ADVERTISEMENT

VS 2008 : Have A Class Where The Functions Of The Same Name Are Both Instance Functions And Shared Functions?

Dec 6, 2010

What I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.

Public Shared Function Get...(byval xx as xx)

and

Public Function Get...

The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).

View 1 Replies

Graphing From CSV?

Dec 3, 2010

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...

View 3 Replies

Graphing And Rotating An Array Using VB10?

Apr 16, 2012

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

[Code].....

View 3 Replies

Graphing Technique Works In Head?

Oct 6, 2011

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?

[Code]...

View 1 Replies

Looking For Sample Code / Literature For Graphing

Sep 28, 2010

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.

View 3 Replies

Graphing - Display A Line Chart Of Some Values

Jun 9, 2009

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.

View 15 Replies

VS 2008 Graphing Sum Of Account Balances From Multiple Individuals?

Nov 24, 2010

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:

11/24/10 10:32:43 am - $150
11/24/10 1:47:13 pm - $180
11/24/10 5:15:34 pm - $140

[Code].....

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?

View 1 Replies

VS 2010 Graphing Collatz Cojecture - Class Assignment?

Feb 6, 2011

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

[code]....

View 3 Replies

Excel Maths Functions And Calls To All DLL Functions Documentation?

Jan 29, 2007

1) Is it possible to access the Excel mathematical functions without actually opening Excel?

I was thinking of through a DLL WinAPI call or maybe a delegate function or smaller program?

2) Does anyone know of a MS link or area that gives instruction on "how to" use every function of every Windows DLL at all?

Or for all those that Microsoft have chosen to document online at least.

View 1 Replies

Buffer/Array - Safe Application That Contains 3 Threads - Data Acquisition And Decoding - Data Graphing - FFT And Filtering

Aug 26, 2009

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

View 13 Replies

Differences Between VB Functions And Convert.To* Functions?

Feb 19, 2009

While converting types, I have found myself using both VB functions and BCL Convert.To* methods.
E.g.)

Cstr() vs. Convert.ToString()
CInt() vs. Convert.ToInt32()
CDbl() vs. Convert.ToInt64()
etc...

Are there any subtle differences that should be noted?

View 1 Replies

[2005] MembershipUser Functions - See Exactly What The Functions Are Doing?

Mar 4, 2009

Is there a way to see exactly what the functions are doing. What i mean is there a way to see the class? I know what it does, i just want to know the code.
For example the function: Membership.FindUsersByName()

View 1 Replies

Graphing "peak" Times From Database

Oct 16, 2009

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)

[Code]...

View 7 Replies

Create Functions In Functions

Jul 1, 2011

I'm redoing a program for my company and my boss wanted me to created the entire thing through functions...

For the task I wanted to know is it possible to have functions within functions?
Sort of like in C where we would have nested structures?

Its a FILE I/O, with robot commands, moves and verifications....

So I would find the line in an excel spreadsheet where it moves, the coordinate, put it into an array.

Take the actual results store them into a two dimensional array...etc, etc....

Another function would eventually compare the results with the moves, and within a tolerance.

View 9 Replies

VS 2010 Add Subs / Functions To Subs / Functions?

Oct 26, 2009

When you refrence a Function like this one:[code]You may want to be able to get more out of that, like this.[code]So how would I be able to add subs or functions onto a sub or function like that?

View 4 Replies

Use C++ Functions In VB?

Feb 1, 2011

I have made quite a good library for calculating Math problems like Quadratic Equations and many other. Now I met a friend, and hes programming a little in VB, and we were thinking if it is possible to import my functions from C++ to his code, so he can call them, when they are needed, so we can make a calculator? How can we do that?

Edit: My friend is using VB.net
Edit: My library is organized in free functions.

View 2 Replies

Using Functions And Dll's

Jul 27, 2010

I am not sure if i am using these in the correct manner. Basically i have an app that downloads a file from an ftp server (i am kinda cheating cos i am using chilkat). Now if i put the code directly in the form i can get it to do a progressbar.value = ... in it['s own sub.What i decided to do was stick my ftp download parts into a dll i created. Created a function within the dll and i have a return on that which returns the message 'file downloaded' or 'no file to download'. But can i return a value to update the progress bar as it goes when the code is contained in a dll? Or am i totally missing the point and how to use dlls?

View 5 Replies

Using Own Sub/functions?

Jan 6, 2012

I have a code which I call many times in my soft,its an external exe commandline file with arguments,Here is a piece of my code

Dim processgetver As New Process()
processgetver.StartInfo.UseShellExecute = False
processgetver.StartInfo.RedirectStandardOutput = True

[code]....

View 8 Replies

How To Use Listview Functions

Jun 21, 2010

I want to ask help from you guys, about on how to use the listview functions in vb.net. I also just starting to study about the vb.net for my object-oriented programming. Please help me in writing the codes for a simple listview.

View 4 Replies

.net - Anonymous Functions In C#?

Mar 13, 2011

The following syntax is valid VB.NET code

Dim myCollection As New List(Of Stock)
myCollection.Add(New Stock(Guid.NewGuid, "Item1"))
myCollection.Add(New Stock(Guid.NewGuid, "Item2"))

[code]....

How can I accomplish the same thing in C#? I have tried...

myCollection.FindAll(bool delegate(Stock stock) {
if (blah blah) {
}
});

But it appears I have somehow structured it incorrectly as I get the following error. "Error 1 Invalid expression term 'bool'"

View 3 Replies

Checking Functions In A Dll?

Mar 28, 2009

How do I check which functions are in a dll I don't who's contents are unknown to me? I am looking to use a certain function and I have a couple of dlls and I don't know in which one it is are its name. So i need to be able to show all function available in a dll and their parameters.

View 6 Replies

Combine 3 Functions Into 1?

Nov 22, 2011

I'v got 3 functions that I'd like to combine into 1. There is only one line in each function that changes. can think of a few ways off the top of my head, but not sure which is "the best", or "proper way" to accomplish this.

Private Function CheckQuads(ByVal QuadNumber As Integer) As Boolean
Dim intArray(3) As Integer
Dim x As Integer = 0

[code].....

View 8 Replies

Get Functions Name And Their Parameters?

Dec 13, 2010

We know some functions in dll files and can use them but if we haw a dll file and dont know functions names. is there a way to get the functions name and their parameters

View 3 Replies

Get Functions Of Sending Sms?

Jul 19, 2009

I am new to visual basic and currently doing my major project on sending sms using visual studio 2005. I want to create it in window application. I have search the net but I could not understand it. I have download some of the project that the net has found for me but when i test it the receiver did not received any message but the application have come out the popped out box saying "message send".

View 8 Replies

Getting Dll Library Functions?

Mar 1, 2010

I have a DLL library, but I am not familiar with it. How can I get its usage in vb.net?

View 2 Replies

How To Call Functions

Dec 22, 2009

I am fiddling with the code here: [URL] I had a couple errors when I copied/pasted it into my project. I dimmed a couple variables, now the squiggle lines are gone, but I'm not sure how to call the functions in the project? Do I use a Lable or a TextBox? How do i make this work?

[Code]...

View 7 Replies

How To Do Left / Right And Mid Functions

Feb 6, 2008

I am working on a migration project of vb6 to vb.net, in vb they did some string actions with left, right, mid functions. How to achieve the same in vb.net.

View 3 Replies

How To Use E.graphics Functions

Jun 4, 2012

How do you use the e.graphics functions? I have visual studio 2010 professional installed. I opened a windows form project, in the code window I type e., there's only End. or Enum., no e.! Do I need to import something at the beginning, or do I need to open certain type of project to use the e. graphics class of functions?

View 6 Replies

Use External Functions With XSL?

Oct 28, 2009

I have a visual basic file with a number of functions I want to use inside my XSL. I can build it as a dll and reference in my XSL project but I don't know how to reference it in my XSL file. I am using visual studio.[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved