Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. USB To Increase speed

USB To Increase speed

Scheduled Pinned Locked Moved C#
performancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    C P User 3
    wrote on last edited by
    #1

    We are going to add a USB connection to our system. I am estimating that this will at least double the speed of transmission from the little box to the PC/GUI. There is a real possibility that we will send the data at 10x the existing speed. Maybe 14x The GUI amasses 8192 bytes per second, and draws 20 graphs from that one second. The samples will still be one second apart, they will just jump across ten times faster. Has anyone gone through this biz before ? Is there anything my GUI/PC guy needs to beef up in the GUI to handle this ? He has a thread for the data reception and a thread for the graphing of that data.

    M 1 Reply Last reply
    0
    • C C P User 3

      We are going to add a USB connection to our system. I am estimating that this will at least double the speed of transmission from the little box to the PC/GUI. There is a real possibility that we will send the data at 10x the existing speed. Maybe 14x The GUI amasses 8192 bytes per second, and draws 20 graphs from that one second. The samples will still be one second apart, they will just jump across ten times faster. Has anyone gone through this biz before ? Is there anything my GUI/PC guy needs to beef up in the GUI to handle this ? He has a thread for the data reception and a thread for the graphing of that data.

      M Offline
      M Offline
      MicroVirus
      wrote on last edited by
      #2

      That really depends on how the threads communicate. Does the data reception thread send the data to the GUI thread, or does the GUI poll the data thread. Also important: where and how is the data stored. The biggest issues I foresee are that your data thread could become too fast for the GUI thread and the latter starts lagging behind, or when the GUI thread locks some resource that this could cause the data thread to hang on the lock too much to keep up with the increased data.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups