Analysis of Data of one Hour and put it in graph

 I am Getting One image Per second.means more than 3000 image in hour . i have to show it in a chart. i use a chart componet of vb.net. In the listbox one all sizes of the image are available .  The loop is not working properly ?
 Dim s As New Series
        Chart1.Series.Clear()
        Chart1.Titles.Add("Demo")
        s.ChartType = SeriesChartType.Line
        Dim lMinutes As Long
        Dim lSeconds As Long
        lSeconds = ListBox1.Items.Count
        lMinutes = (Int(lSeconds / 60))
        '' lSeconds = Int(lSeconds Mod 60)
        MessageBox.Show(lMinutes)
        For t As Integer = 1 To lMinutes
            For y As Integer = 0 To ListBox1.Items.Count - 1
                s.Points.AddXY(t, Val(ListBox1.Items.Item(y).ToString))
            Next
        Next
        Chart1.Series.Add(s)
Satyajit Rath

Hi,
first, switch Option Strict On an fix the compile errors.
lMinutes and lSeconds don't need to be declared As Long because ListBox1.Items.Count returns an Integer.
With new VB.Net projects, it's not required to use the VB6 emulation layer. The Val() function is part of it. Use Integer.Parse instead.
You must make the inner loop depend on the outer loop. There are several ways to write the loop(s). It depends on how you want the chart to be displayed. I'm not sure about that. Your code makes me assume, you want to display the values within one minute
at the same X location of the chart. However, then the ChartType "Line" doesn't seem to be appropriate. Let me know if this is correct. I've changed it to "Point" for testing. Then you can write it like this:
For t As Integer = 1 To lMinutes
For y As Integer = (t - 1) * 60 To Math.Min(t * 60 - 1, ListBox1.Items.Count - 1)
s.Points.AddXY(t, Integer.Parse(ListBox1.Items.Item(y).ToString))
Next
Next
Before, you have to change one line:
lMinutes = CInt(Math.Ceiling(lSeconds / 60))
Armin

Similar Messages

  • When I import a commercial CD itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the other album by it self. How can I combine them all into one album and why is itunes doing this?

    When I import a commerical CD Itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the second album that it created.  Why is itunes doing this and what can I do to combine them into one album?

    I found this to be somewhat helpful: Grouping Tracks into Albums
    What I did was to put in the same name for Album Artist in every track.  That seemed to do the trick (previously all those fields were empty).  It seems like a lot of work for a simple thing.
    iTunes knows (or should know) that these tracks were imported from one CD. So why is it relying on incomplete data from the gracenote database?

  • How do i remove photostream from one computer and put onto laptop?

    When i got my iphone 4s i didn't have a laptop so i had to download itunes onto my mums computer. I now have a laptop and i want to take photostream off my mums computer and put it onto my laptop but its all so confusing. please help!!!!

    PhotoStream is a cloud service. You can't "take it off one computer and put it on another." All you do is enable it on the other computer. You can do that in iPhoto preferences.

  • How do you take pictures from one library and put in another library??

    How do you take pictures from one library and put in another library??

    Options:
    1. Export from iPhoto A to the Finder, then import to iPhoto B
    This gets the photo over, but no versions, no edit history and not all the metadata
    2. Use iPhoto Library Manager
    This gets everything: versions, edit history and all the metadata.
    Regards
    TD

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it?

    Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it? I thought that if I bought it the apps on my macbook, they would be avaliable on my imac like the mobile devices operate. The macbook has 10.6.8 cause its a older model and I think lion would slow it down. Any help??

    Just redownload it on the other computer by logging into the App Store with the same Apple ID you used to purchase it.

  • Report to display (actuals data from one cube and plan from another)

    Hi Gurus,
             I have a requirement in reporting to display actual data from one cube and plan data from a different one.
            The example below might give a clear picture of the requirement.
    rows has key figures and columns = months
    Jan |  Feb |  Mar |  Apr |  May |  Jun  ...   ....
    GrossSales
    Net Sales   
    Now if I run the report for Current month (Apr), then for the months of (Jan, Feb and Mar) i need to get the data from CUBE1   and for the remaining months (Apr thru Dec) from CUBE2.
    Similarly when i run the report next month(may), 
    then (data for Jan, Feb, Mar, Apr  from CUBE1)
    and ( May thru Dec from CUBE2)
    Any suggestions.
    Thanks in Advance
    Kumar

    Hi Henry,
         We alreadey have a multi provider which includes
    FinDat Cube(CUBE1) for actuals and Comm.Goals cube (CUBE2) for plan.
    So you suggest that we have two versions of key figure for actual and plan.
    ie. each KF will have two versions.
    actuals = (version 10, FiscPer<curr.mnth, key figure, acutals cube)
    Plan = (version 20, FiscPer>=curr.mnth, key figure, comm.goals cube)
    eg:
    Jan | Feb | Mar | Apr | May | Jun ...
    GrossSales(Act)
    GrossSlaes(Plan)
    Net Sales(Acutal)
    Net Sales(Plan)
    Correct me if I am wrong.
    the report has a lot of key figures, having two versions for each kf will be confusing.
    the user would like to see
    Jan.....| ...Feb  |..Mar |..Apr.....|  May  | 
    GrossSales   Act Value|Act.V |Act.V| PlanVal|PlanVal|
    Net Sales
    where Act.Value is from CUBE1
             Plan Value is from CUBE2
    Thanks
    Kumar

  • How can i take photoshop off one computer and put it on another

    How can I take photoshop off one couputer and put it on another?

    Hi Beth, welcome to the discussions!
    Might be a good idea to also post over in the iPhoto forum if you haven't tried this yet as this is a common topic on their boards.
    You may be able to get your iPhoto library back by rebuilding it. I've done it, but's it's been a long time, so don't want to mislead you on anything. The guys over in the iPhoto forum are real experts and should have some fixes for you.

  • Date less one hour

    Hello,
    In a shell script on Solaris, I want to get the current date less one hour. I did : TZ=MET-0 date '+%d%b%Y_%H_00_00' but it doesn't work if we are in the summer hour. How can I have this without the reference of the GMT ?
    Thanks
    Delphine

    set TZ="US/Central" which is always one hour behind.

  • Ever since I got the new update 5.1 my iPod's been dying faster. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason(even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? lagging too

    Ever since I got the new update 5.1 my iPod's been dying faster, even after I charge it. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason (even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? It's lagging as well..

    Some Users have Reported that a  Restore as New  has helped Resolve issues...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • Can you cancel Adobe Photoshop CS6 from one computer and put it on another?

    Can you cancel Adobe Photoshop CS6 from one computer and put it on another computer?

    Yes. You have to deactivate it on one computer and then you can install it and activate it on another. Technically, your license allows you to have Photoshop CS6 installed and activated on two computers, you just can't use both at the same time.

  • Hi I got photoshop cc and want to take if of my one computer and put if on a other computer with a different email add

    hi I got photoshop cc and want to take if of my one computer and put if on a other computer with a different email add

    Hello cmc313,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes 10 for Mac: Consolidate your iTunes library
    http://support.apple.com/kb/ph990
    You can consolidate all the files in your library in the iTunes folder so that, for example, it’s easier to move your library to a new computer.
    Best of luck,
    Mario

  • Is there an all in one printer that allows me to scan multiple pictures at one time and put them directly into iPhoto?

    I am looking to replace an old HP psc 2210 all in one printer  with a new all in one that will let me scan multiple photos at one time and put them directly into iPhoto.  Dos anyone have suggestions for a printer that will do this?

    I use an HP Photosmart, but most scanners will scan multiple photo's. I just make sure in the scan preferences, I tick the box to "Detect Seperate Items". I normaly scan 6 to 8 photo's at a time, size depending on how many I can fit on the scanner bed. I set the preferences to scan directly to iPhoto.
    Hope this helps.

  • How long does it take for the IOS 7.1 to finish updating? My phone has been plugged in to my computer for more than one hour and the status bar only shows about less than 1/4 completed. I have an iphone 5s btw.

    My phone has been plugged in to my computer for more than one hour and the status bar only shows about less than 1/4 completed. I have an iphone 5s btw.

    Depends on how strong your wifi connection is.
    you can try a reset hold down the home/sleep button together until you see the apple logo and then release.

  • I want to take the heads of people in one picture and put them in another, can i do this in iphoto?

    i want to take the heads of my dogs from one photo and put them on people heads in another. can i do this in iphoto?

    No. You'll need an external editor for that.
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

Maybe you are looking for

  • Just because the iphone 3g is no longer sold, doesnt mean people still dont own it.

    i am not happy with apple, i bought the iphone 3g when it came out and now since they have a newer iphone they can just cut off there services to the iphone 3g??!!! like just cause its older doesnt mean people dont own them anymore. my phone is alway

  • How do I wipe my hard drive?

    I have an iMac G5.  I'd like to wipe the hard drive so I can donate it, and have tried restarting while holding down the "c" key with the Mac OS X Install CD inserted into the drive, in an attempt to restart from the CD, but the computer does not boo

  • Submitting E-mail Form Causing MS Outlook to lock-up

    I have Acrobat Pro 11 and a form created using LCD E3. We have a feature to e-mail a form, the feature works fine. When we submit a form, it automatically will launch Outlook and attatch the PDF but that is when the problem begins. It seems Outlook d

  • JApplet  clippboard !=  Windows  clipboard ?

    Hi, I'm just a beginner in Java. I like use a Windows clipboard in a Java JApplet. i.e. I need copy and paste some text from windows into the Java Applet (JTextField for example) (I usually use 'CTRL+C" and 'CTRL+V') But it's not possible to copy any

  • Invalid login credentials after upgrading to 3.0.1

    I have upgraded our apex2.1 version to 3.0.1. When trying to login for the first time I entered my database user name in the workspace field and enter my database user name and password as per upgrade instructions. However, all I get is the error 'In