parsing spaces out of the text object


    Apr 26 2007 | 6:00 pm
    Hi all,
    I finally have a working serial object (thanks to Jeremy), but now I have a different dilemma. Namely, I have converted incoming data from the serial object into ascii letters. Then, I threw them into the "text" object in order to parse incoming data. However, this still leaves a "space" between the letters even though I've tried to filter out 32 (space) from the stream using select object (before I converted it into ascii). So, how can I either:
    1) remove spaces in the text object between each ascii sign (this is apparently how the serial object spits out data nn, yet 32 does not filter out the last space nor does itoa)
    2) use some other object to convert data stream into text
    Help is most appreciated.
    Best wishes,
    Ico

    • Apr 26 2007 | 6:33 pm
      Ivica Ico Bukvic skrev: > So, how can I > either: > > 1) remove spaces in the text object between each ascii sign (this is > apparently how the serial object spits out data nn, yet 32 does not > filter out the last space nor does itoa) Will this method of removing spaces work for you?
    • Apr 26 2007 | 9:55 pm
      > > filter out the last space nor does itoa) > Will this method of removing spaces work for you? > > >
      Well, this works with message, but number still does not understand the output. If I send in a "7 3", number complains it has received "73" which it does not understand. Even if I pass it through the message and then bang the message into the number it still complains about it even though visually message shows "73".
      Any ideas?
      Best wishes,
      Ico
    • Apr 26 2007 | 10:14 pm
      Never mind, figured it out (use fromsymbol).
      Many thanks!
      Best wishes,
      Ico
    • Apr 26 2007 | 10:17 pm
      Ivica Ico Bukvic skrev: >>> filter out the last space nor does itoa) >>> >> Will this method of removing spaces work for you? >> >> >>
    • Apr 26 2007 | 10:41 pm
      maybe this will work:
    • Apr 27 2007 | 8:11 am
      hi,
      if your message length is known and constant you can do this :
      G