Hi, Ive got a windows form made in vb2010 and i want to use the chart feature.
at the minute Ive got a string coming in from the serial port that is a temperature in this format "20.0" etc where it is a floating point to one place of decimal.
I am not sure how to get it to display properly, im using this code which Ive tried to adapt, with no success.
The graph moves along but wont show the correct temperature values probably because it is a string im converting to. I have tried converting to intger and actually changing the temperature format to an integer value but i get an error about being unable to cast when the value is greater than infinity.
Any help would be greatly appreciated. Thanks

Dim temperature As String = SerialPort1.ReadExisting
Chart1.Series("Series1").Points.AddY(temperature)