Decimal variable input with HSERIN command


Results 1 to 9 of 9

Threaded View

  1. #1

    Question Decimal variable input with HSERIN command

    Hello,

    I would like to do a simple thing with the HSERIN command :

    I send from my computer the ASCII chain "A1234". What I want it's to store the number (1234) in a variable (for instance, "vartest").
    Also, if I send from my computer the ASCII chain "B0005", I want to store the number (5) into an another variable (let's say "vartest2").

    I think it's quite simple, but I don't know how to handle that within a loop.

    Thanks
    Last edited by pxidr84; - 18th April 2013 at 18:06.

Similar Threads

  1. Recieve decimal with HSERIN
    By mel4853 in forum Serial
    Replies: 2
    Last Post: - 12th February 2012, 03:43
  2. HSERIN for variable length string
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th February 2010, 05:58
  3. variable + decimal
    By savnik in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th August 2009, 14:21
  4. Midi input, using hserin?
    By TonyA in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 26th June 2007, 12:18
  5. Convert a word variable to decimal
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th December 2004, 20:02

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