Re: VB Help

Originally Posted by
cncmachineguy
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
Bookmarks