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. Design and Architecture
  4. Algorithm help, Splitting up multiple readings

Algorithm help, Splitting up multiple readings

Scheduled Pinned Locked Moved Design and Architecture
algorithmsperformancehelptutorialquestion
3 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.
  • G Offline
    G Offline
    glennPattonPub
    wrote on last edited by
    #1

    Hi All, Lets see if this helps. I am reading back data from a device into a rich text box this is all working fine I can save out as a file fine, the data may contain multiple units so I need to check the first 8 bits to see if they are the same I can split them up fine it is how to store them. I don't really want to use separate text boxes so I was thinking of strings would this be a dumb idea as I don't want to cripple performance? Plus I don't really know how many separate readings are likely.... Glenn

    L 1 Reply Last reply
    0
    • G glennPattonPub

      Hi All, Lets see if this helps. I am reading back data from a device into a rich text box this is all working fine I can save out as a file fine, the data may contain multiple units so I need to check the first 8 bits to see if they are the same I can split them up fine it is how to store them. I don't really want to use separate text boxes so I was thinking of strings would this be a dumb idea as I don't want to cripple performance? Plus I don't really know how many separate readings are likely.... Glenn

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What device? Did it come with specifications?

      glennPattonWork wrote:

      I don't really want to use separate text boxes so I was thinking of strings would this be a dumb idea as I don't want to cripple performance?

      Strings aren't a dumb idea, but I'd go for a blob and use a stream to write to it. As far as efficiency goes, that will depend more on the way you handle the requests than the datatype you'll use.

      glennPattonWork wrote:

      Plus I don't really know how many separate readings are likely....

      What is a "separate" reading? Doesn't the driver provide a single value at a time? edit-- Found the same question in the algorithms section. Please don't crosspost, it's not very helpfull.

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      G 1 Reply Last reply
      0
      • L Lost User

        What device? Did it come with specifications?

        glennPattonWork wrote:

        I don't really want to use separate text boxes so I was thinking of strings would this be a dumb idea as I don't want to cripple performance?

        Strings aren't a dumb idea, but I'd go for a blob and use a stream to write to it. As far as efficiency goes, that will depend more on the way you handle the requests than the datatype you'll use.

        glennPattonWork wrote:

        Plus I don't really know how many separate readings are likely....

        What is a "separate" reading? Doesn't the driver provide a single value at a time? edit-- Found the same question in the algorithms section. Please don't crosspost, it's not very helpfull.

        Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

        G Offline
        G Offline
        glennPattonPub
        wrote on last edited by
        #3

        Dang, I thought this was deleted.

        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