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


ADVERTISEMENT

How To Find All Peak Value Of Array

Oct 31, 2011

I have an array where it storing all the analyzed values. The ubound array is 2999 and if we plot a chart with y-axis as the values and x-axis as the number of array (0-2999), the chart will look like as similar to the chart shown in the link below. (sorry to say I'm not unable to upload my picture from my pc, no idea what is the problem).I'm able to search for the maximum value (~ -25dB) of my chart from my array with this simple routine:[code]But my problem is I do not know how to find my second peak value, as example, the value ~-63 dB as shown in the chart. How should i write the routine to get this value from the array?

View 3 Replies

How To Graph An Adudio Peak Meter

Jun 13, 2009

I have literally been everywhere (Even CodeProject.com) Everything is so out dated... Does anyone know how to graph a peak meter, or have, or know where to get a (Working) one..

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

Get Atleast Noise Level Coming Out Of Speakers / Draw A Graph And Detect Peak At When Sound Is Played?

Feb 3, 2011

I was just thinking if there is any component which monitors sound output. My intention is to recognize a particular sound coming out from my soundcard. I know its an issue about the driver of my sound card but is there a way I can get atleast noise level coming out of my speakers and maybe draw a graph and detect the peak at when the sound is played?

View 7 Replies

Looping Through Database Too Many Times

Apr 11, 2011

I have a database and I have a form that you can add questions to the database. Once the question has been added, I go to the quiz which uses the database and it goes through all the questions twice. I was wondering why this is happening [Code] Also I was wondering how do I set up the form to be the first form shown on the program?

View 11 Replies

Looping Through Database Too Many Times?

Oct 31, 2009

I have a database and I have a form that you can add questions to the database. Once the question has been added, I go to the quiz which uses the database and it goes through all the questions twice. I was wondering why this is happening Adding Questions to the Database

Public Class frmAddQuestion
Private Sub lblAnswerToAdd1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
conOpen()
sql = "Select * from questions"

[code]....

how do I set up the form to be the first form shown on the program?

View 2 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

Saving Times In Database With Different Dattime Pickers?

Sep 17, 2009

I am creating a program where i can fill in a list of open/close times.

In total i have 14 datetimepickers which i set to custom format with hours and minutes.

Every dtpicker has an name (eg mondayopen, mondayclosed, tuesdayopen, tuesdayclosed and so on).

After setting the times right i want to throw everything at once into the datatabse.

Is there some kind of manner to loop through the datetimepickers and insert them into the db or do i have to do them all seperately?

View 2 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

Enlarge An Image Up To 32 Times Or 64 Times Bigger Than Original?

Dec 12, 2011

I want to enlarge an image, possibly up to 32 times or 64 times bigger than original dimensions (so that the user can see each pixel) if possible. The following is a simple function that I have to enlarge an image.

Private Function xEnlarge(ByVal Source As Image, ByVal Rate As Double, Optional ByVal Quality As Drawing2D.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic) As Image

[Code].....

View 6 Replies

C# - Alternative To Firing A Stored Procedure 368 Times To Update The Database?

Jul 19, 2010

I'm working on a .NET component that gets a set of data from the database, performs some business logic on that set of data, and then updates single records in the database via a stored procedure that looks something like spUpdateOrderDetailDiscountedItem.

For small sets of data, this isn't a problem, but when I had a very large set of data that required an iteration of 368 stored proc calls to update the records in the database, I realized I had a problem. A senior dev looked at my stored proc code and said it looked fine, but now I'd like to explore a better method for sending "batch" data to the database.

What options do I have for updating the database in batch? Is this possible with stored procs? What other options do I have? I won't have the option of installing a full-fledged ORM,Additional Background Info:Our current data access model was built 5 years ago and all calls to the db currently get executed via modular/static functions with names like ExecQuery and GetDataTable. I'm not certain that I'm required to stay within that model, but I'd have to provide a very good justification for going outside of our current DAL to get to the DB.

Also worth noting, I'm fairly new when it comes to CRUD operations and the database. I much prefer to play/work in the .NET side of code, but the data has to be stored somewhere, right?

[Code]...

View 9 Replies

Forms :: Find If Times Is Between 2 Times?

May 13, 2009

I have just started using vb.net and I have a checked list box with times throughout the day shown as

00:00 - 00:14
00:15 - 00:29
00:30 - 00:44
00:45 - 00:59

What I am trying to find is a way to get the current time and find which list item it fits into. What I think I need to do is to first of all get the current time and then go through the list splitting each item into 2 times and seeing if the current time fits. For example: Split the item 00:00 - 00:14 to 00:00 and 00:14 and then check if the current time is more than 00:00:00 but less than 00:14:59 and if so do certain task.how to go about taking each list item and splitting it into 2 separate times so I can check between them?

View 2 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

Make A Coin Toss Program Where One Toss A Coin A Certain Number Of Times Then Repeat It A Certain Number Of Times?

Nov 21, 2010

i am trying to make a coin toss program where you toss a coin a certain number of times then repeat it a certain number of times.
the problem i have is "heads(counter2)" the word "heads" has a blue error line under it how do i sort the error out and also is all the code right

Public Class Form1
Dim tosses, repeat, heads As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[code]....

View 1 Replies

Difference Between Two Times?

Mar 8, 2010

im currently working with a payroll system as a project i wonder how can i use

TimeDiff(,,,)

in crystal report(FOrmula Fields)what are the proper things to put on it?to find the difference of 2 time or any other way of finding the difference of times?

View 1 Replies

How To Calculate Sum Of Two Times

Jan 28, 2010

i want to calculate sum of two times example:

[Code]...

View 7 Replies

Subtracting Times In Vb?

Apr 25, 2012

i want to subtract 18 years from a vb date object here's the code example:

Dim someVar
DirectCast(pcontrol, DateTimePicker).Value = Date.Now.Subtract(someVar)

someVar value is ?

View 1 Replies

Tab A Certain Amount Of Times?

Mar 31, 2011

I need to tab over a certain amount of times in a text fileI am using chr(9) for the tab, but I don't want to have to put in a bunch of those.

View 3 Replies

Timer Between Two Times?

Feb 6, 2010

How would you make the Interval of a timer to be between two times.

E.g if you wanted an event to occur between every 7 and 20 seconds?

View 9 Replies

.net Parsing HTML 100 Times?

Feb 1, 2012

Imports System.Web
Imports System.Net
Imports System.Net.ServicePointManager
Public Class GetSource
Function GetHtml(ByVal strPage As String) As String
tryAgain:

[Code]...

What I got here is a vb.net code where I parse the website for its html This function works fine. The question is this...

1.If I run 100 threads with this function at the same time, Will it work?

2.Won't it affect my internet connection as well?

I don't want to waste time creating threads and codes a hundred times so if you know the answer please advice me on what should I do instead

View 1 Replies

Able To Add Times Such As 2:39 Instead Of Decimal Numbers Using VB?

Jul 15, 2011

I am creating a Time Sheet Calculator Application and just need to find out how to add numbers that are in hourly form. For example 2:39 (two hours and thirty nine minutes). I know how to create code for simple addition of decimal numbers, but does VB 2010 have some kind of way of adding hours and returning a number in hourly form.

View 1 Replies

Apply The Same Image To Each Tab Several Times?

Jul 29, 2009

i have a tab control thing and i want to make it transparent. When i set each tab to that is just turns gray, even when i run it. Can someone help me. I dont want to have to apply the same image to each tab several times.

View 14 Replies

Calculate The Difference Between 2 Different Times?

Feb 9, 2009

I want to calculate the difference between 2 different times. have the following code:

Code:
tNow = Now.TimeOfDay.Hours & ":" & Now.TimeOfDay.Minutes & ":" & Now.TimeOfDay.Seconds
tEnd = iNum1 & ":" & iNum2 & ":" & iNum3
tTimeRemaining = tEnd - tNow

This works all well until, the variables are the following:

Time Now: 7:36:34 PM
Time End: 12:46:00 AM

Because it passes over from PM to AM it gives me like 18 hours difference.Im lookiing for it to return me 5 hours

View 11 Replies

Call A Sub About 10 Times Under A Button

Aug 22, 2009

I call a sub about 10 times under a button, is there any trick to know in the sub code, if it is the first called sub running or the 2nd...?

getResults(0, 10)
MsgBox("pause")
getResults(10, 10)
MsgBox("pause")

[CODE]...

View 6 Replies







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