VB Help


Results 1 to 36 of 36

Thread: VB Help

Threaded View

  1. #20
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: VB Help

    Quote Originally Posted by cncmachineguy View Post
    From PIC:
    data(0) and data(1). these 2 bytes are the highbyte and lowbyte of a word. -32768-32767

    I need to see the word like that. for example the word may equal 3, or it may be -3. right now I will see 3 or 65533.

    So how to put the bytes back together and show signed integer?
    IN VB.Net, signed bytes are Sbyte and signed Words are Short

    Exemple;
    Dim data0 as Short=-32500
    Dim data1 as SByte = -65

    But if the PIC is sending the 65533, the PC will see 65533 and not -3. Don't know if can help you.
    Last edited by gadelhas; - 30th May 2011 at 22:51.
    Thanks and Regards;
    Gadelhas

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