Algorithm help, Splitting up multiple readings
-
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
-
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
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[^]
-
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[^]
Dang, I thought this was deleted.