ich hab ein kleines programm welches mir daten von einem Avr per Com empfangen soll
Das empfangen funktionierte auch, jedoch hab ich probleme, mit dem Splitten des strings
, bekomme irgendwie immer den Index out of Range,.
ich zerteile den String mit
mein empfangener String sieht so aus
4.857600209 97 1.234
Das empfangen funktionierte auch, jedoch hab ich probleme, mit dem Splitten des strings
, bekomme irgendwie immer den Index out of Range,.
ich zerteile den String mit
Code:
Dim words As String() words = System.Text.RegularExpressions.Regex.Split(test, " ") Dim word As String tbserialinput.AppendText("Volt: " & words(0) & vbCrLf) tbserialinput.AppendText("Prozent: " & words(1) & vbCrLf) tbserialinput.AppendText("Ampere: " & words(2) & vbCrLf)
4.857600209 97 1.234
Comment