Sub AStream_NewData (buffer() As Byte)
Dim Incoming As String
Dim Start As Int
Dim Stop As Int
'Determine if the graph is paused, and if it is not paused (we are graphing actively) then accept the incoming data
If Main.Graph_Paused = False Then
Log("Buffer Length: " & buffer.Length)
Incoming = BytesToString(buffer, 0, buffer.Length, "UTF8")
Start = Incoming.IndexOf("B")
Stop = Incoming.IndexOf("Q")
Log("Incoming:" & Incoming)
'Log("Start:" & Start)
'Log("Stop:" & Stop)
End If
End Sub