Hi from a newbie,
I'm having a little trouble charting 2 ai channels at the same time. Please review following code. I used max to create virtual channels. I think I have set my chart properties correctly. I think the problem is in my code where I add,singleread, or chart the 2 channels.
Public Sub cmdStart_Click()
'Clear the channel list and add a new channel
CWAIPoint1.Channels.RemoveAll
CWAIPoint1.Channels.Add txtXaxis.Text
CWAIPoint1.Channels.Add txtYaxis.Text
Do While StopFlag <> True
CWAIPoint1.SingleRead X, Y
CWGraph1.ChartY X
CWGraph1.ChartY Y
DoEvents
Loop
StopFlag = False
End Sub
thanks,
Brian