求实时画曲线方法?用自带的chart 还是teechart
在线等待 高手解决
原来用TEECHART 在VB中没有问题
现在在NET中不能使用 编译没有错误 但运行的时候会出现错误
NET自带的chart画实时曲线也可
如果各位高手有好的方法能够实现实时曲线,还望不吝赐教用
With AxTChart1
.Axis.Bottom.Automatic = False
.Axis.Bottom.AdjustMaxMin()
.Axis.Bottom.Maximum = 60
.Axis.Bottom.Minimum = 0
.Axis.Left.Automatic = False
.Axis.Left.AdjustMaxMin()
.Axis.Left.Maximum = 800
.Axis.Left.Minimum = 0
End With
starttime = GetTickCount
Do While (GetTickCount - starttime) / 1000 > 60 '60 ' My.Application.DoEvents()
If ALLStop = True Then
'Call AN_En
Exit Sub
End If
'保压过程画图
TM_W = Int(GetTickCount - starttime)
chartXvalues0 = Format(TM_W / 1000, "#0.00") 'TM_W以秒为单位,除以60变为分 '***更新X0
chartYvalues0 = Format(Val(Me.TextBox1.Text), "#0.000") '***更新Y,M''Rnd * 10 '
AxTChart1.Series(0).AddXY(chartXvalues0, chartYvalues0, "", System.Convert.ToUInt32(TeeChart.EConstants.clTeeColor)) '***M加点
Loop