My sbyte return a text string, however it seems like on every instance when i read the com port it will add the last value. so the value is 000000000001 then on the second pass its 000000000001 0000FFFE0001 how can i only get the 0000FFFE0001 and of that get the FFFE value. I tried MidStr ( Mid(sBuffer, 5, 12)) but that didn;t seem to work.
If comm1.InBufferCount > 0 Then
' Arr = comm1.Input
Dim sByte As String = String.Empty
sByte = comm1.Input
sBuffer = sByte
comm1.InBufferCount = 0