Private Sub DrawDynamicLinePoints
Private Speed, Direction As Double
DateTime.TimeFormat = "ss"
Private ElapsedTime As String
ElapsedTime=DateTime.Time( DateTime.Now) 'time in seconds
Speed = Rnd(0, 60)
Dim TestArray() As Double = Array As Double(100, 150 ,80,250,130,140,80,130 )
Direction = TestArray
'Dim CardArray2() As Double = Array As Double(80, 150 ,80,140,130,50,80,130 )
'Direction = Listem
If DynamicLines1.NbPoints = ReadingsToShow Then
DynamicLines1.RemovePointData(0)
End If
DynamicLines1.AddLineMultiplePoints(ElapsedTime, Array As Double(Speed,Direction), True)
DynamicLines1.DrawChart
End Sub