Parsing serial data


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427

    Default Parsing serial data

    In the PBP 2.60 upgrade manual(pg.150, center paragraph, last two sentenses read...

    "All non-digits received prior to the first digit of the decimal value are ignored and discarded. The non-digit character which terminates the value is also discarded."

    therefore...

    if the string "abcde@#.,&fg66.77aldkfj88.99" is recieved
    and my parsing statement is "dec W,dec X,dec Y,dec Z" WITHOUT any "wait" modifiers

    will the result be W=66, X=77, Y=88, Z=99 ??

    and all "non-digits" discarded and ignored?

    Is a period (".") a non-digit?


    Thanks for any help
    Dwight

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    will the result be W=66, X=77, Y=88, Z=99 ??
    Yes
    and all "non-digits" discarded and ignored?
    Yes
    Is a period (".") a non-digit?
    0-9 are digits
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts