Im wondering if you could help me, What i'm needing to do is extract a range of values from a text file and use these values to create a line graph. I have the ZenGraph Sample up and running. I'm just struggling with how to tie them both together.
Here is a part of my text file below
Box temp invalid ETI 547493
Accumulated charge = 204 Ah, accumulated discharge = 105 Ah
Total volts 269.9 V
Total Current -1.096 A
The values i am needing to extract are "29.0,28.8,29.6,29.4,29.8,
from the third line.
Then once i have these temperature values how do i plot these on the Graph.
Thanks in Advance.
'This part of the code plots only once
Private Sub CreateGraph(ByVal zgc As ZedGraphControl)
Dim myPane As GraphPane = zgc.GraphPane
' Set the title and axis labels
myPane.Title.Text = "Thermistor Test"
myPane.XAxis.Title.Text = "Cells X"
myPane.YAxis.Title.Text = "Temperature Y"
' Make up some data arrays based on the Sine function
Dim list1 As New PointPairList()
' Dim list2 As New PointPairList()
Dim i As Integer, x As Double, y1 As Double
For i = 0 To 1
x = string
y1 = 29.0
Dim myCurve As LineItem = myPane.AddCurve("Temperature", _
list1, Color.Red, SymbolType.Diamond)