Hi
I need a pointer in the right direction.
I receive a string of data from hardware in the following format
" 01 1 2 1 0340 10 33 56 08 09 20 09 0002 0010 0000 0303 0303 0600 0000 0600 0000 0349 0302 0349 0301 0349 0303 0349 0203 0413 0500"
I need to put these values or words in an array with 5 elements. The non numerical char is a Ascii 4 to signal start of the string and the vertical lines is ascii 5 to signal a new element in the array. 4 elements will have a fixed lenght with the same amount of words everytime. the fourth element needs to be variable and receives two columns of words, each one is the temperature of a probe, problem is the recorder sometimes take temp reading for an hour and sometimes up to 5 hours at 5 second intervals. So this is why the fourth element must take a variable lenght.
these words need to be parsed into a float and used to draw a graph which should not be too difficult.
I just need help on how to get the string above into an 5 element array.
Any Ideas?
procomp65 0 Light Poster
gotschai 0 Newbie Poster
procomp65 0 Light Poster
sknake 1,622 Senior Poster Featured Poster
procomp65 commented: Most helpfull person on the forums +1
procomp65 0 Light Poster
procomp65 0 Light Poster
sknake 1,622 Senior Poster Featured Poster
gotschai 0 Newbie Poster
gotschai 0 Newbie Poster
procomp65 0 Light Poster
procomp65 0 Light Poster
procomp65 0 Light Poster
gotschai 0 Newbie Poster
procomp65 0 Light Poster
procomp65 0 Light Poster
gotschai 0 Newbie Poster
gotschai 0 Newbie Poster
procomp65 0 Light Poster
procomp65 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.