我新建了一个画面,内放置了一个按钮和一个“趋势”,然后按钮上右击VBA,填上如下代码:
Private Sub Button3_Released()
Dim pen1, pen2, pen3, pen4, pen5, pen6, pen7, pen8 As Pen
Dim Ps As Pens
Set Ps = Trend1.Pens
Set pen1 = Ps.Add("shiyan_bianliang\tank1_liuliang", "励磁11111电压", "V", 0, 70)
Set pen2 = Ps.Add("shiyan_bianliang\tank2_liuliang", "励磁22222电流", "A", 0, 100)
End Sub
“趋势”-----通用----名称:Trend1
然后进入se client中,点击按钮,,,,就是看不到新增的趋势线tank1_liuliang,tank2_liuliang?
请高手指点